diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-13 19:02:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-13 19:02:16 +0000 |
commit | d940dd5801abbb6b2d26d26b5dd204cabca90332 (patch) | |
tree | 7dde279673269655b0f3f22a70395b027bcdfdfb /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 63f5a77822a3c1d28e072c3f243d38dcf0fd4039 (diff) | |
download | bcm5719-llvm-d940dd5801abbb6b2d26d26b5dd204cabca90332.tar.gz bcm5719-llvm-d940dd5801abbb6b2d26d26b5dd204cabca90332.zip |
remove MAI::JumpTableSpecialLabelPrefix now that MAI
has real information about linker private linkage.
llvm-svn: 81695
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index c6339ebfc4d..e9ddadab7c4 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -375,13 +375,13 @@ void AsmPrinter::EmitJumpTableInfo(MachineJumpTableInfo *MJTI, if (EmittedSets.insert(JTBBs[ii])) printPICJumpTableSetLabel(i, JTBBs[ii]); - // On some targets (e.g. darwin) we want to emit two consequtive labels + // On some targets (e.g. Darwin) we want to emit two consequtive labels // before each jump table. The first label is never referenced, but tells // the assembler and linker the extents of the jump table object. The // second label is actually referenced by the code. - if (JTInDiffSection) { - if (const char *JTLabelPrefix = MAI->getJumpTableSpecialLabelPrefix()) - O << JTLabelPrefix << "JTI" << getFunctionNumber() << '_' << i << ":\n"; + if (JTInDiffSection && MAI->getLinkerPrivateGlobalPrefix()[0]) { + O << MAI->getLinkerPrivateGlobalPrefix() + << "JTI" << getFunctionNumber() << '_' << i << ":\n"; } O << MAI->getPrivateGlobalPrefix() << "JTI" << getFunctionNumber() |