mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-25 15:41:05 +00:00
Add comments to function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58781 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
83b5cf0272
commit
b4b130f0b1
@ -224,6 +224,12 @@ GlobalVariable *Module::getGlobalVariable(const std::string &Name,
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// getOrInsertGlobal - Look up the specified global in the module symbol table.
|
||||
/// 1. If it does not exist, add a declaration of the global and return it.
|
||||
/// 2. Else, the global exists but has the wrong type: return the function
|
||||
/// with a constantexpr cast to the right type.
|
||||
/// 3. Finally, if the existing global is the correct delclaration, return the
|
||||
/// existing global.
|
||||
Constant *Module::getOrInsertGlobal(const std::string &Name, const Type *Ty) {
|
||||
ValueSymbolTable &SymTab = getValueSymbolTable();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user