diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-03-12 18:47:50 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-03-12 18:47:50 +0000 |
| commit | d75813970a75e3bf4a2fe35087f757aae2ef5b9e (patch) | |
| tree | bb46252dd71a2ceb0c22f7818c5199dac861741e /llvm/lib | |
| parent | 2eff505fba3f0c0f16c5fbc6eaa8066b47e29fef (diff) | |
| download | bcm5719-llvm-d75813970a75e3bf4a2fe35087f757aae2ef5b9e.tar.gz bcm5719-llvm-d75813970a75e3bf4a2fe35087f757aae2ef5b9e.zip | |
simplify code to use OutContext.GetOrCreateTemporarySymbol with
no arguments instead of having to come up with a unique name.
This also makes the code less fragile.
llvm-svn: 98364
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp b/llvm/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp index bde7bfd63a8..f175907e5d1 100644 --- a/llvm/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp +++ b/llvm/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp @@ -406,11 +406,8 @@ void X86AsmPrinter::EmitInstruction(const MachineInstr *MI) { // For this, we want to print something like: // MYGLOBAL + (. - PICBASE) // However, we can't generate a ".", so just emit a new label here and refer - // to it. We know that this operand flag occurs at most once per function. - const char *Prefix = MAI->getPrivateGlobalPrefix(); - MCSymbol *DotSym = OutContext.GetOrCreateTemporarySymbol(Twine(Prefix)+ - "picbaseref" + - Twine(getFunctionNumber())); + // to it. + MCSymbol *DotSym = OutContext.GetOrCreateTemporarySymbol(); OutStreamer.EmitLabel(DotSym); // Now that we have emitted the label, lower the complex operand expression. |

