llvm.org GIT mirror llvm / release_27 test / CodeGen / X86 / hidden-vis.ll
release_27

Tree @release_27 (Download .tar.gz)

hidden-vis.ll @release_27raw · history · blame

; RUN: llc < %s -mtriple=i686-pc-linux-gnu | FileCheck %s -check-prefix=LINUX
; RUN: llc < %s -mtriple=i686-apple-darwin8 | FileCheck %s -check-prefix=DARWIN

@a = hidden global i32 0
@b = external global i32

define weak hidden void @t1() nounwind {
; LINUX: .hidden t1
; LINUX: t1:

; DARWIN: .private_extern _t1
; DARWIN: t1:
  ret void
}

define weak void @t2() nounwind {
; LINUX: t2:
; LINUX: .hidden a

; DARWIN: t2:
; DARWIN: .private_extern _a
  ret void
}