summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit47bef1a8a2f5ef13fe97f6da3058d0704e83e1b7 (patch)
tree4339c0ede1664f6e2994666dd943328a2d164741 /llvm/lib/Target/TargetLoweringObjectFile.cpp
parent6932b2e8b76ff349d034703c7593d2321335cd81 (diff)
downloadbcm5719-llvm-47bef1a8a2f5ef13fe97f6da3058d0704e83e1b7.tar.gz
bcm5719-llvm-47bef1a8a2f5ef13fe97f6da3058d0704e83e1b7.zip
make TargetLoweringObjectFile::getExprForDwarfReference
just make unnamed temp symbols instead of having to come up with its own names. llvm-svn: 98324
Diffstat (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r--llvm/lib/Target/TargetLoweringObjectFile.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index b47dad5c94a..5a960d80852 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud