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.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();
}