diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-03-14 07:27:07 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-03-14 07:27:07 +0000 |
| commit | aba9bcb9b60edbad3646b2f3088c120d06549cc7 (patch) | |
| tree | ef1afda10b71212573c752bfefc14d2dfbdbf0f3 /lib/CodeGen/AsmPrinter | |
| parent | f14645cc6474dab76b266906575ce4e4d018e9ee (diff) | |
switch GC_LABEL to use an MCSymbol operand instead of a label ID operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 31151f304a..66a2eee7a7 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/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); } |
