aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/SymbolTable.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/SymbolTable.h')
-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 49e028b402..50b933ed5a 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!");