summaryrefslogtreecommitdiff
path: root/lib/Target/TargetLoweringObjectFile.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-16 02:16:09 +0000
committerChris Lattner <sabre@nondot.org>2010-01-16 02:16:09 +0000
commit0b3735e65af1cc3ff7fb76e2b30e2ffb2604f400 (patch)
tree42264290350307b25e962ed375f36819bf3d553a /lib/Target/TargetLoweringObjectFile.cpp
parent27891030ed35fe1c0f9af6e1533d2d6082ff411d (diff)
downloadllvm-0b3735e65af1cc3ff7fb76e2b30e2ffb2604f400.tar.gz
llvm-0b3735e65af1cc3ff7fb76e2b30e2ffb2604f400.tar.bz2
llvm-0b3735e65af1cc3ff7fb76e2b30e2ffb2604f400.tar.xz
remove a couple of actively incorrect uses of getMangledName.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93627 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r--lib/Target/TargetLoweringObjectFile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp
index 70e8008eb4..6ecbec4064 100644
--- a/lib/Target/TargetLoweringObjectFile.cpp
+++ b/lib/Target/TargetLoweringObjectFile.cpp
@@ -955,7 +955,8 @@ shouldEmitUsedDirectiveFor(const GlobalValue *GV, Mangler *Mang) const {
// FIXME: ObjC metadata is currently emitted as internal symbols that have
// \1L and \0l prefixes on them. Fix them to be Private/LinkerPrivate and
// this horrible hack can go away.
- const std::string &Name = Mang->getMangledName(GV);
+ SmallString<64> Name;
+ Mang->getNameWithPrefix(NameTmp, GV, false);
if (Name[0] == 'L' || Name[0] == 'l')
return false;
}