[llvm-commits] [llvm] r75557 - in /llvm/trunk: include/llvm/Support/Mangler.h lib/VMCore/Mangler.cpp
Chris Lattner
sabre at nondot.org
Mon Jul 13 16:47:27 PDT 2009
Author: lattner
Date: Mon Jul 13 18:47:27 2009
New Revision: 75557
URL: http://llvm.org/viewvc/llvm-project?rev=75557&view=rev
Log:
remove mangler support for mangling local names. Mangler should only be
used with globals.
Modified:
llvm/trunk/include/llvm/Support/Mangler.h
llvm/trunk/lib/VMCore/Mangler.cpp
Modified: llvm/trunk/include/llvm/Support/Mangler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Mangler.h?rev=75557&r1=75556&r2=75557&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Mangler.h (original)
+++ llvm/trunk/include/llvm/Support/Mangler.h Mon Jul 13 18:47:27 2009
@@ -89,7 +89,6 @@
/// 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_",
Modified: llvm/trunk/lib/VMCore/Mangler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Mangler.cpp?rev=75557&r1=75556&r2=75557&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Mangler.cpp (original)
+++ llvm/trunk/lib/VMCore/Mangler.cpp Mon Jul 13 18:47:27 2009
@@ -136,20 +136,6 @@
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];
More information about the llvm-commits
mailing list