diff options
author | Chris Lattner <sabre@nondot.org> | 2002-03-08 20:26:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-03-08 20:26:17 +0000 |
commit | e82f1c6cb715cea962b4aa25cf617fa9f9f85fa8 (patch) | |
tree | 7dd3a5a8fb1adf641f556d6dd42d4a6590c7648c /include/llvm | |
parent | 34538145f4852b439438bd956d4bd8a67db1fab5 (diff) | |
download | external_llvm-e82f1c6cb715cea962b4aa25cf617fa9f9f85fa8.zip external_llvm-e82f1c6cb715cea962b4aa25cf617fa9f9f85fa8.tar.gz external_llvm-e82f1c6cb715cea962b4aa25cf617fa9f9f85fa8.tar.bz2 |
* Add new method localLookup
* SymbolTable::remove(Value *N) checks to see if we are internally
inconsistent before looking for a type plane (caused a crash)
* insertEntry now does a local lookup instead of a global lookup, which was
causing an infinite loop in the renamer logic.
* Added assertions to make sure stuff stays happy
* Now the linker correctly links the SPECINT2000 mcf benchmark
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1840 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/SymbolTable.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/SymbolTable.h b/include/llvm/SymbolTable.h index 49e028b..50b933e 100644 --- a/include/llvm/SymbolTable.h +++ b/include/llvm/SymbolTable.h @@ -54,6 +54,11 @@ public: // lookup - Returns null on failure... Value *lookup(const Type *Ty, const std::string &name); + // localLookup - Look in this symbol table without falling back on parent, + // if non-existing. Returns null on failure... + // + Value *localLookup(const Type *Ty, const std::string &name); + // insert - Add named definition to the symbol table... inline void insert(Value *N) { assert(N->hasName() && "Value must be named to go into symbol table!"); |