llvm.org GIT mirror llvm / 8764e8a test / MC / WebAssembly / visibility.ll
8764e8a

Tree @8764e8a (Download .tar.gz)

visibility.ll @8764e8araw · history · blame

; RUN: llc -mtriple wasm32-unknown-unknown-wasm -filetype=obj %s -o - | obj2yaml | FileCheck %s

; 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
}

; CHECK:        - Type:            CUSTOM

; CHECK:        - Type:            CUSTOM
; CHECK-NEXT:     Name:            linking
; CHECK-NEXT:     DataSize:        0
; CHECK-NEXT:     SymbolInfo:
; CHECK-NEXT:       - Name:            hiddenVis
; CHECK-NEXT:         Flags:           [ VISIBILITY_HIDDEN ]
; CHECK-NEXT: ...