diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-05 03:01:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-05 03:01:21 +0000 |
commit | 1da31ee472b9615d7329c656e2cc17c419ed7c95 (patch) | |
tree | 53acb45503d1236ffe89ff984efd14a4749361b7 /lib/Target/X86/X86ATTAsmPrinter.cpp | |
parent | edad2b783fe9ab20bdf0de2b3315559fb75f3a25 (diff) | |
download | llvm-1da31ee472b9615d7329c656e2cc17c419ed7c95.tar.gz llvm-1da31ee472b9615d7329c656e2cc17c419ed7c95.tar.bz2 llvm-1da31ee472b9615d7329c656e2cc17c419ed7c95.tar.xz |
Pass the MachineFunction into EmitJumpTableInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30742 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ATTAsmPrinter.cpp')
-rwxr-xr-x | lib/Target/X86/X86ATTAsmPrinter.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Target/X86/X86ATTAsmPrinter.cpp b/lib/Target/X86/X86ATTAsmPrinter.cpp index 85ba0f40e6..eef95d935d 100755 --- a/lib/Target/X86/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/X86ATTAsmPrinter.cpp @@ -126,10 +126,11 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) { } } - // Print out jump tables referenced by the function - // Mac OS X requires at least one non-local (e.g. L1) labels before local - // lables that are used in jump table expressions (e.g. LBB1_1-LJT1_0). - EmitJumpTableInfo(MF.getJumpTableInfo()); + // Print out jump tables referenced by the function. + + // Mac OS X requires that the jump table follow the function, so that the jump + // table is part of the same atom that the function is in. + EmitJumpTableInfo(MF.getJumpTableInfo(), MF); if (TAI->hasDotTypeDotSizeDirective()) O << "\t.size " << CurrentFnName << ", .-" << CurrentFnName << "\n"; |