aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-08 20:26:17 +0000
committerChris Lattner <sabre@nondot.org>2002-03-08 20:26:17 +0000
commite82f1c6cb715cea962b4aa25cf617fa9f9f85fa8 (patch)
tree7dd3a5a8fb1adf641f556d6dd42d4a6590c7648c /include/llvm
parent34538145f4852b439438bd956d4bd8a67db1fab5 (diff)
downloadexternal_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.h5
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!");