summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/AsmPrinter/ARMMCInstLower.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-30 18:10:53 +0000
committerChris Lattner <sabre@nondot.org>2010-03-30 18:10:53 +0000
commit9897043928aebe05b3e56e7860eda862db767727 (patch)
treeb4c9fbef021920ef6b0f4511c88334a8014c1b78 /llvm/lib/Target/ARM/AsmPrinter/ARMMCInstLower.cpp
parent85eea4e031ef69edcfe903bbd756f89f7d923556 (diff)
downloadbcm5719-llvm-9897043928aebe05b3e56e7860eda862db767727.tar.gz
bcm5719-llvm-9897043928aebe05b3e56e7860eda862db767727.zip
Rip out the 'is temporary' nonsense from the MCContext interface to
create symbols. It is extremely error prone and a source of a lot of the remaining integrated assembler bugs on x86-64. This fixes rdar://7807601. llvm-svn: 99902
Diffstat (limited to 'llvm/lib/Target/ARM/AsmPrinter/ARMMCInstLower.cpp')
-rw-r--r--llvm/lib/Target/ARM/AsmPrinter/ARMMCInstLower.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/AsmPrinter/ARMMCInstLower.cpp b/llvm/lib/Target/ARM/AsmPrinter/ARMMCInstLower.cpp
index 7cb305fc41c..ab2b06b6078 100644
--- a/llvm/lib/Target/ARM/AsmPrinter/ARMMCInstLower.cpp
+++ b/llvm/lib/Target/ARM/AsmPrinter/ARMMCInstLower.cpp
@@ -75,7 +75,7 @@ GetJumpTableSymbol(const MachineOperand &MO) const {
#endif
// Create a symbol for the name.
- return Ctx.GetOrCreateTemporarySymbol(Name.str());
+ return Ctx.GetOrCreateSymbol(Name.str());
}
MCSymbol *ARMMCInstLower::
@@ -91,7 +91,7 @@ GetConstantPoolIndexSymbol(const MachineOperand &MO) const {
#endif
// Create a symbol for the name.
- return Ctx.GetOrCreateTemporarySymbol(Name.str());
+ return Ctx.GetOrCreateSymbol(Name.str());
}
MCOperand ARMMCInstLower::
OpenPOWER on IntegriCloud