mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 07:24:47 +00:00
Simplify some code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20476 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -252,9 +252,8 @@ void SymbolTable::insertEntry(const std::string &Name, const Type *VTy,
|
|||||||
std::string UniqueName = getUniqueName(VTy, Name);
|
std::string UniqueName = getUniqueName(VTy, Name);
|
||||||
assert(InternallyInconsistent == false &&
|
assert(InternallyInconsistent == false &&
|
||||||
"Infinite loop inserting value!");
|
"Infinite loop inserting value!");
|
||||||
InternallyInconsistent = true;
|
V->Name = UniqueName;
|
||||||
V->setName(UniqueName);
|
VM->insert(VI, make_pair(UniqueName, V));
|
||||||
InternallyInconsistent = false;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -382,11 +381,10 @@ void SymbolTable::refineAbstractType(const DerivedType *OldType,
|
|||||||
//
|
//
|
||||||
assert(InternallyInconsistent == false &&
|
assert(InternallyInconsistent == false &&
|
||||||
"Symbol table already inconsistent!");
|
"Symbol table already inconsistent!");
|
||||||
InternallyInconsistent = true;
|
|
||||||
|
|
||||||
// Remove newM from the symtab
|
// Update NewGV's name, we're about the remove it from the symbol
|
||||||
NewGV->setName("");
|
// table.
|
||||||
InternallyInconsistent = false;
|
NewGV->Name = "";
|
||||||
|
|
||||||
// Now we can remove this global from the module entirely...
|
// Now we can remove this global from the module entirely...
|
||||||
Module *M = NewGV->getParent();
|
Module *M = NewGV->getParent();
|
||||||
|
Reference in New Issue
Block a user