aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-13 19:02:16 +0000
committerChris Lattner <sabre@nondot.org>2009-09-13 19:02:16 +0000
commit7c30191393c99c9ba804f1a01942a9e130c53904 (patch)
tree3b59aa0d47baf8fdda621929cb359029c1e2a9b0 /lib/CodeGen
parent1026c163c82d4d3481548bf69a18ac10ebd728c6 (diff)
downloadexternal_llvm-7c30191393c99c9ba804f1a01942a9e130c53904.zip
external_llvm-7c30191393c99c9ba804f1a01942a9e130c53904.tar.gz
external_llvm-7c30191393c99c9ba804f1a01942a9e130c53904.tar.bz2
remove MAI::JumpTableSpecialLabelPrefix now that MAI
has real information about linker private linkage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index c6339eb..e9ddada 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/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()