diff options
Diffstat (limited to 'llvm/lib/VMCore/Globals.cpp')
-rw-r--r-- | llvm/lib/VMCore/Globals.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Globals.cpp b/llvm/lib/VMCore/Globals.cpp index 8bcb5313243..efa588bd561 100644 --- a/llvm/lib/VMCore/Globals.cpp +++ b/llvm/lib/VMCore/Globals.cpp @@ -100,10 +100,8 @@ void GlobalVariable::setParent(Module *parent) { } // Specialize setName to take care of symbol table majik -void GlobalVariable::setName(const std::string &name, SymbolTable *ST) { +void GlobalVariable::setName(const std::string &name) { Module *P; - assert((ST == 0 || (!getParent() || ST == &getParent()->getSymbolTable())) && - "Invalid symtab argument!"); if ((P = getParent()) && hasName()) P->getSymbolTable().remove(this); Value::setName(name); if (P && hasName()) P->getSymbolTable().insert(this); |