summaryrefslogtreecommitdiff
path: root/lib/Target/TargetLoweringObjectFile.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-12 01:56:43 +0000
committerChris Lattner <sabre@nondot.org>2010-03-12 01:56:43 +0000
commitf789d26f810243ffd6db79e15a6f10821d785308 (patch)
tree9263832e90064fce1b6b256e6db7243b39da9f41 /lib/Target/TargetLoweringObjectFile.cpp
parent1b596e399bd284bc7c2f48fb2e5a852452faf3dd (diff)
downloadllvm-f789d26f810243ffd6db79e15a6f10821d785308.tar.gz
llvm-f789d26f810243ffd6db79e15a6f10821d785308.tar.bz2
llvm-f789d26f810243ffd6db79e15a6f10821d785308.tar.xz
make TargetLoweringObjectFile::getExprForDwarfReference
just make unnamed temp symbols instead of having to come up with its own names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r--lib/Target/TargetLoweringObjectFile.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp
index b47dad5c94..5a960d8085 100644
--- a/lib/Target/TargetLoweringObjectFile.cpp
+++ b/lib/Target/TargetLoweringObjectFile.cpp
@@ -326,11 +326,7 @@ getExprForDwarfReference(const MCSymbol *Sym, Mangler *Mang,
case dwarf::DW_EH_PE_pcrel: {
// Emit a label to the streamer for the current position. This gives us
// .-foo addressing.
- SmallString<128> Name;
- Mang->getNameWithPrefix(Name, Twine("PCtemp") + Twine(Mang->getUniqueID()),
- Mangler::Private);
-
- MCSymbol *PCSym = getContext().GetOrCreateTemporarySymbol(Name.str());
+ MCSymbol *PCSym = getContext().GetOrCreateTemporarySymbol();
Streamer.EmitLabel(PCSym);
const MCExpr *PC = MCSymbolRefExpr::Create(PCSym, getContext());
return MCBinaryExpr::CreateSub(Res, PC, getContext());