2009-09-09 02:09:15 +02:00
|
|
|
; RUN: llc < %s -mtriple=arm-linux | FileCheck %s -check-prefix=LINUX
|
|
|
|
; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=DARWIN
|
2008-12-06 03:00:55 +01:00
|
|
|
|
|
|
|
@a = hidden global i32 0
|
|
|
|
@b = external global i32
|
|
|
|
|
2009-09-03 09:04:02 +02:00
|
|
|
define weak hidden void @t1() nounwind {
|
|
|
|
; LINUX: .hidden t1
|
2013-07-14 08:24:09 +02:00
|
|
|
; LINUX-LABEL: t1:
|
2008-12-06 03:00:55 +01:00
|
|
|
|
2009-09-03 09:04:02 +02:00
|
|
|
; DARWIN: .private_extern _t1
|
2013-07-14 08:24:09 +02:00
|
|
|
; DARWIN-LABEL: t1:
|
2008-12-06 03:00:55 +01:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2009-09-03 09:04:02 +02:00
|
|
|
define weak void @t2() nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
; LINUX-LABEL: t2:
|
2009-09-03 09:04:02 +02:00
|
|
|
; LINUX: .hidden a
|
2008-12-06 03:00:55 +01:00
|
|
|
|
2013-07-14 08:24:09 +02:00
|
|
|
; DARWIN-LABEL: t2:
|
2009-09-03 09:04:02 +02:00
|
|
|
; DARWIN: .private_extern _a
|
2008-12-06 03:00:55 +01:00
|
|
|
ret void
|
|
|
|
}
|