aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-13 23:47:27 +0000
committerChris Lattner <sabre@nondot.org>2009-07-13 23:47:27 +0000
commit762717acb165439de535b76ef7ccc83cc798dcaa (patch)
tree26750517598143c9b57e3696212aeb2e3dc89ec2
parentca1bafda1d72e1ef909cb8a7b1ca74e283ffea99 (diff)
downloadexternal_llvm-762717acb165439de535b76ef7ccc83cc798dcaa.zip
external_llvm-762717acb165439de535b76ef7ccc83cc798dcaa.tar.gz
external_llvm-762717acb165439de535b76ef7ccc83cc798dcaa.tar.bz2
remove mangler support for mangling local names. Mangler should only be
used with globals. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75557 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/Mangler.h1
-rw-r--r--lib/VMCore/Mangler.cpp14
2 files changed, 0 insertions, 15 deletions
diff --git a/include/llvm/Support/Mangler.h b/include/llvm/Support/Mangler.h
index 8f672bd..1de1905 100644
--- a/include/llvm/Support/Mangler.h
+++ b/include/llvm/Support/Mangler.h
@@ -89,7 +89,6 @@ public:
/// in the current module.
///
std::string getValueName(const GlobalValue *V, const char *Suffix = "");
- std::string getValueName(const Value *V);
/// makeNameProper - We don't want identifier names with ., space, or
/// - in them, so we mangle these characters into the strings "d_",
diff --git a/lib/VMCore/Mangler.cpp b/lib/VMCore/Mangler.cpp
index 948bb36..5a4df62 100644
--- a/lib/VMCore/Mangler.cpp
+++ b/lib/VMCore/Mangler.cpp
@@ -136,20 +136,6 @@ unsigned Mangler::getTypeID(const Type *Ty) {
return E;
}
-std::string Mangler::getValueName(const Value *V) {
- if (const GlobalValue *GV = dyn_cast<GlobalValue>(V))
- return getValueName(GV);
-
- std::string &Name = Memo[V];
- if (!Name.empty())
- return Name; // Return the already-computed name for V.
-
- // Always mangle local names.
- Name = "ltmp_" + utostr(Count++) + "_" + utostr(getTypeID(V->getType()));
- return Name;
-}
-
-
std::string Mangler::getValueName(const GlobalValue *GV, const char *Suffix) {
// Check to see whether we've already named V.
std::string &Name = Memo[GV];