mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
DebugInfo: Make a test more portable
mach-o doesn't like sections without segments, and elf is perfectly happy with commas in section names, so use a Darwin-like section name. Suggestion by Eric Christopher. llvm-svn: 215052
This commit is contained in:
parent
37f9f1e4f7
commit
c3838694ad
@ -3,7 +3,7 @@
|
||||
|
||||
; Generated from the following source compiled with clang -gmlt:
|
||||
; void f1(void) {}
|
||||
; void f2(void) __attribute__((section("bar"))) {}
|
||||
; void f2(void) __attribute__((section("__TEXT,__bar"))) {}
|
||||
|
||||
; Check that
|
||||
; * -gmlt ('Emission Kind' of 'LineTablesOnly' in the CU debug info metadata)
|
||||
@ -36,7 +36,7 @@ entry:
|
||||
}
|
||||
|
||||
; Function Attrs: nounwind uwtable
|
||||
define void @f2() #0 section "bar" {
|
||||
define void @f2() #0 section "__TEXT,__bar" {
|
||||
entry:
|
||||
ret void, !dbg !12
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user