forked from OSchip/llvm-project
X86-Darwin: start emitting data-region directives for jump-tables.
The surrounding tools can cope these days, and they were invented for a reason. llvm-svn: 268437
This commit is contained in:
parent
8a004551d0
commit
d2ecbccf27
|
|
@ -39,7 +39,7 @@ RelaxELFRel("relax-relocations", cl::init(false),
|
|||
cl::desc("Emit R_X86_64_GOTPCRELX instead of R_X86_64_GOTPCREL"));
|
||||
|
||||
static cl::opt<bool>
|
||||
MarkedJTDataRegions("mark-data-regions", cl::init(false),
|
||||
MarkedJTDataRegions("mark-data-regions", cl::init(true),
|
||||
cl::desc("Mark code section jump table data regions."),
|
||||
cl::Hidden);
|
||||
|
||||
|
|
|
|||
|
|
@ -93,11 +93,13 @@ bb7:
|
|||
; DARWIN64: Lfunc_end
|
||||
; DARWIN64-NEXT: .cfi_endproc
|
||||
; DARWIN64-NOT: .section
|
||||
; DARWIN64: .data_region jt32
|
||||
; DARWIN64: LJTI{{.*}}:
|
||||
; DARWIN64-NEXT: .long
|
||||
; DARWIN64-NEXT: .long
|
||||
; DARWIN64-NEXT: .long
|
||||
; DARWIN64-NEXT: .long
|
||||
; DARWIN64-NEXT: .end_data_region
|
||||
; DARWIN64-NEXT: .section __TEXT,__gcc_except_tab
|
||||
|
||||
; int G1;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
; RUN: llc < %s -relocation-model=pic -mark-data-regions -mtriple=i686-apple-darwin -asm-verbose=false \
|
||||
; RUN: | FileCheck %s --check-prefix=CHECK-DATA
|
||||
; RUN: llc < %s -relocation-model=pic -mtriple=i686-apple-darwin -asm-verbose=false \
|
||||
; RUN: | FileCheck %s
|
||||
; RUN: | FileCheck %s --check-prefix=CHECK-DATA
|
||||
; RUN: llc < %s -mtriple=x86_64-apple-darwin | not grep 'lJTI'
|
||||
; rdar://6971437
|
||||
; rdar://7738756
|
||||
|
|
|
|||
Loading…
Reference in New Issue