mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
Do not consider any types that exist in the global symbol table!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8084 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -347,7 +347,8 @@ static GlobalValue *FindGlobalNamed(const std::string &Name, const Type *Ty,
|
|||||||
// It doesn't exist exactly, scan through all of the type planes in the symbol
|
// It doesn't exist exactly, scan through all of the type planes in the symbol
|
||||||
// table, checking each of them for a type-compatible version.
|
// table, checking each of them for a type-compatible version.
|
||||||
//
|
//
|
||||||
for (SymbolTable::iterator I = ST->begin(), E = ST->end(); I != E; ++I) {
|
for (SymbolTable::iterator I = ST->begin(), E = ST->end(); I != E; ++I)
|
||||||
|
if (I->first->getType() != Type::TypeTy) {
|
||||||
SymbolTable::VarMap &VM = I->second;
|
SymbolTable::VarMap &VM = I->second;
|
||||||
// Does this type plane contain an entry with the specified name?
|
// Does this type plane contain an entry with the specified name?
|
||||||
SymbolTable::type_iterator TI = VM.find(Name);
|
SymbolTable::type_iterator TI = VM.find(Name);
|
||||||
|
@ -347,7 +347,8 @@ static GlobalValue *FindGlobalNamed(const std::string &Name, const Type *Ty,
|
|||||||
// It doesn't exist exactly, scan through all of the type planes in the symbol
|
// It doesn't exist exactly, scan through all of the type planes in the symbol
|
||||||
// table, checking each of them for a type-compatible version.
|
// table, checking each of them for a type-compatible version.
|
||||||
//
|
//
|
||||||
for (SymbolTable::iterator I = ST->begin(), E = ST->end(); I != E; ++I) {
|
for (SymbolTable::iterator I = ST->begin(), E = ST->end(); I != E; ++I)
|
||||||
|
if (I->first->getType() != Type::TypeTy) {
|
||||||
SymbolTable::VarMap &VM = I->second;
|
SymbolTable::VarMap &VM = I->second;
|
||||||
// Does this type plane contain an entry with the specified name?
|
// Does this type plane contain an entry with the specified name?
|
||||||
SymbolTable::type_iterator TI = VM.find(Name);
|
SymbolTable::type_iterator TI = VM.find(Name);
|
||||||
|
@ -347,7 +347,8 @@ static GlobalValue *FindGlobalNamed(const std::string &Name, const Type *Ty,
|
|||||||
// It doesn't exist exactly, scan through all of the type planes in the symbol
|
// It doesn't exist exactly, scan through all of the type planes in the symbol
|
||||||
// table, checking each of them for a type-compatible version.
|
// table, checking each of them for a type-compatible version.
|
||||||
//
|
//
|
||||||
for (SymbolTable::iterator I = ST->begin(), E = ST->end(); I != E; ++I) {
|
for (SymbolTable::iterator I = ST->begin(), E = ST->end(); I != E; ++I)
|
||||||
|
if (I->first->getType() != Type::TypeTy) {
|
||||||
SymbolTable::VarMap &VM = I->second;
|
SymbolTable::VarMap &VM = I->second;
|
||||||
// Does this type plane contain an entry with the specified name?
|
// Does this type plane contain an entry with the specified name?
|
||||||
SymbolTable::type_iterator TI = VM.find(Name);
|
SymbolTable::type_iterator TI = VM.find(Name);
|
||||||
|
Reference in New Issue
Block a user