diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-13 23:50:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-13 23:50:53 +0000 |
commit | 47728a2819b9d0d57b41898d086a1141e54a4c72 (patch) | |
tree | e405cb607fdc9104345c698730c4a7fa7da3dd03 /lib | |
parent | 762717acb165439de535b76ef7ccc83cc798dcaa (diff) | |
download | external_llvm-47728a2819b9d0d57b41898d086a1141e54a4c72.zip external_llvm-47728a2819b9d0d57b41898d086a1141e54a4c72.tar.gz external_llvm-47728a2819b9d0d57b41898d086a1141e54a4c72.tar.bz2 |
remove Mangler::getTypeID and related data, it was only used for mangling
local symbols and we haven't had type planes since llvm 1.9.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75558 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/Mangler.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/VMCore/Mangler.cpp b/lib/VMCore/Mangler.cpp index 5a4df62..625c9c3 100644 --- a/lib/VMCore/Mangler.cpp +++ b/lib/VMCore/Mangler.cpp @@ -128,14 +128,6 @@ std::string Mangler::makeNameProper(const std::string &X, const char *Prefix, return Result; } -/// getTypeID - Return a unique ID for the specified LLVM type. -/// -unsigned Mangler::getTypeID(const Type *Ty) { - unsigned &E = TypeMap[Ty]; - if (E == 0) E = ++TypeCounter; - return E; -} - std::string Mangler::getValueName(const GlobalValue *GV, const char *Suffix) { // Check to see whether we've already named V. std::string &Name = Memo[GV]; @@ -162,7 +154,7 @@ std::string Mangler::getValueName(const GlobalValue *GV, const char *Suffix) { Mangler::Mangler(Module &M, const char *prefix, const char *privatePrefix) : Prefix(prefix), PrivatePrefix (privatePrefix), UseQuotes(false), - PreserveAsmNames(false), Count(0), TypeCounter(0) { + PreserveAsmNames(false), Count(0) { std::fill(AcceptableChars, array_endof(AcceptableChars), 0); // Letters and numbers are acceptable. |