mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-20 19:20:23 +00:00
91f86b7e1c
This interface allows IRObjectFile to be implemented without having dummy methods for all section and segment related methods. Both llvm-ar and llvm-nm are changed to use it. Unfortunately the mangler is still not plugged in since it requires some refactoring to make a Module hold a DataLayout. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201881 91177308-0d34-0410-b5e6-96231b3b80d8
35 lines
533 B
LLVM
35 lines
533 B
LLVM
; RUN: llvm-as %s -o - | llvm-nm - | FileCheck %s
|
|
|
|
; CHECK: D a1
|
|
; CHECK-NEXT: d a2
|
|
; CHECK-NEXT: T f1
|
|
; CHECK-NEXT: t f2
|
|
; CHECK-NEXT: W f3
|
|
; CHECK-NEXT: U f4
|
|
; CHECK-NEXT: D g1
|
|
; CHECK-NEXT: d g2
|
|
; CHECK-NEXT: C g3
|
|
; CHECK-NOT: g4
|
|
|
|
@g1 = global i32 42
|
|
@g2 = internal global i32 42
|
|
@g3 = common global i32 0
|
|
@g4 = private global i32 42
|
|
|
|
@a1 = alias i32* @g1
|
|
@a2 = alias internal i32* @g1
|
|
|
|
define void @f1() {
|
|
ret void
|
|
}
|
|
|
|
define internal void @f2() {
|
|
ret void
|
|
}
|
|
|
|
define linkonce_odr void @f3() {
|
|
ret void
|
|
}
|
|
|
|
declare void @f4()
|