summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-14 07:27:07 +0000
committerChris Lattner <sabre@nondot.org>2010-03-14 07:27:07 +0000
commit1065f49ad9b2cb175e86ee9bc5f919e3bdafe5f6 (patch)
tree1a6f09e21479e82594c7f987faad5ebc61452a75 /llvm/lib/CodeGen/AsmPrinter
parentd16d38c0b9713a7f57cb4c5073137c53555bd524 (diff)
downloadbcm5719-llvm-1065f49ad9b2cb175e86ee9bc5f919e3bdafe5f6.tar.gz
bcm5719-llvm-1065f49ad9b2cb175e86ee9bc5f919e3bdafe5f6.zip
switch GC_LABEL to use an MCSymbol operand instead of a label ID operand.
llvm-svn: 98474
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 31151f304af..66a2eee7a78 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1558,9 +1558,7 @@ void AsmPrinter::printLabelInst(const MachineInstr *MI) const {
if (MI->getOperand(0).isMCSymbol())
Sym = MI->getOperand(0).getMCSymbol();
else
- Sym =
- OutContext.GetOrCreateTemporarySymbol(Twine(MAI->getPrivateGlobalPrefix()) +
- "label" + Twine(MI->getOperand(0).getImm()));
+ Sym = MMI->getLabelSym(MI->getOperand(0).getImm());
OutStreamer.EmitLabel(Sym);
}
OpenPOWER on IntegriCloud