aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/SymbolTable.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-06-25 07:31:05 +0000
committerChris Lattner <sabre@nondot.org>2001-06-25 07:31:05 +0000
commit3bcd6394ecd3c928d2ea05bb64cacdcae8dc677a (patch)
treeabd721b18f3210276939233081d5c4c5d2f47f52 /include/llvm/SymbolTable.h
parent53b1c0161d7fb6e8eb4bd1c49114a5cf57258364 (diff)
* Rename get.*Operator to create seeing that it would have to be qualified
with the classname anyways. * Add an isPHINode() method to Instruction * Add getUniqueName() to SymbolTable class * Add an insert method to ValueHolder git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/SymbolTable.h')
-rw-r--r--include/llvm/SymbolTable.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/SymbolTable.h b/include/llvm/SymbolTable.h
index dfb78eee82..91c5d613d4 100644
--- a/include/llvm/SymbolTable.h
+++ b/include/llvm/SymbolTable.h
@@ -58,6 +58,12 @@ public:
void remove(Value *N);
Value *type_remove(const type_iterator &It);
+ // getUniqueName - Given a base name, return a string that is either equal to
+ // it (or derived from it) that does not already occur in the symbol table for
+ // the specified type.
+ //
+ string getUniqueName(const Type *Ty, const string &BaseName);
+
inline unsigned type_size(const Type *TypeID) const {
return find(TypeID)->second.size();
}