diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-14 15:57:55 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-14 15:57:55 +0000 |
commit | 41ffe6c7afe0ff8ec3d0ae11bd82d165abe5a232 (patch) | |
tree | 02e91439e6d5d28fcc2ffe0e5e528e59e2043d4f /lib/VMCore | |
parent | 69fcae91a4c46af5c13be1618c7592e95597b327 (diff) | |
download | external_llvm-41ffe6c7afe0ff8ec3d0ae11bd82d165abe5a232.tar.gz external_llvm-41ffe6c7afe0ff8ec3d0ae11bd82d165abe5a232.tar.bz2 external_llvm-41ffe6c7afe0ff8ec3d0ae11bd82d165abe5a232.zip |
Revert r75610 (and r75620, which was blocking the revert), in the hopes of
unbreaking llvm-gcc (on Darwin).
--- Reverse-merging r75620 into '.':
U include/llvm/Support/Mangler.h
--- Reverse-merging r75610 into '.':
U test/CodeGen/X86/loop-hoist.ll
G include/llvm/Support/Mangler.h
U lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
U lib/VMCore/Mangler.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75636 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Mangler.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/VMCore/Mangler.cpp b/lib/VMCore/Mangler.cpp index 10a29db285..cec41dfd40 100644 --- a/lib/VMCore/Mangler.cpp +++ b/lib/VMCore/Mangler.cpp @@ -116,19 +116,12 @@ std::string Mangler::makeNameProper(const std::string &X, return Result; } -/// getMangledName - Returns the mangled name of V, an LLVM Value, -/// in the current module. If 'Suffix' is specified, the name ends with the -/// specified suffix. If 'ForcePrivate' is specified, the label is specified -/// to have a private label prefix. -/// -std::string Mangler::getMangledName(const GlobalValue *GV, const char *Suffix, - bool ForcePrivate) { +std::string Mangler::getValueName(const GlobalValue *GV, const char *Suffix) { assert((!isa<Function>(GV) || !cast<Function>(GV)->isIntrinsic()) && "Intrinsic functions cannot be mangled by Mangler"); if (GV->hasName()) - return makeNameProper(GV->getName() + Suffix, - GV->hasPrivateLinkage() | ForcePrivate); + return makeNameProper(GV->getName() + Suffix, GV->hasPrivateLinkage()); // Get the ID for the global, assigning a new one if we haven't got one // already. @@ -136,8 +129,7 @@ std::string Mangler::getMangledName(const GlobalValue *GV, const char *Suffix, if (ID == 0) ID = NextAnonGlobalID++; // Must mangle the global into a unique ID. - return makeNameProper("__unnamed_" + utostr(ID) + Suffix, - GV->hasPrivateLinkage() | ForcePrivate); + return "__unnamed_" + utostr(ID) + Suffix; } Mangler::Mangler(Module &M, const char *prefix, const char *privatePrefix) |