2018-01-24 07:03:47 +08:00
|
|
|
; RUN: llc -filetype=obj %s -o - | obj2yaml | FileCheck %s
|
|
|
|
|
2018-05-11 01:49:11 +08:00
|
|
|
target triple = "wasm32-unknown-unknown"
|
2017-12-03 09:19:23 +08:00
|
|
|
|
|
|
|
; Function with __attribute__((visibility("default")))
|
|
|
|
define void @defaultVis() #0 {
|
|
|
|
entry:
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; Function with __attribute__((visibility("hidden")))
|
|
|
|
define hidden void @hiddenVis() #0 {
|
|
|
|
entry:
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2018-04-27 02:15:32 +08:00
|
|
|
; CHECK: SymbolTable:
|
2018-02-23 13:08:34 +08:00
|
|
|
; CHECK-NEXT: - Index: 0
|
|
|
|
; CHECK-NEXT: Kind: FUNCTION
|
|
|
|
; CHECK-NEXT: Name: defaultVis
|
|
|
|
; CHECK-NEXT: Flags: [ ]
|
|
|
|
; CHECK-NEXT: Function: 0
|
|
|
|
; CHECK-NEXT: - Index: 1
|
|
|
|
; CHECK-NEXT: Kind: FUNCTION
|
|
|
|
; CHECK-NEXT: Name: hiddenVis
|
2017-12-14 06:02:25 +08:00
|
|
|
; CHECK-NEXT: Flags: [ VISIBILITY_HIDDEN ]
|
2018-02-23 13:08:34 +08:00
|
|
|
; CHECK-NEXT: Function: 1
|
2017-12-03 09:19:23 +08:00
|
|
|
; CHECK-NEXT: ...
|