Summary: Added a new option "-X" to specify, which type of object file should be examine. For example: 1. "llvm-nm -X64 archive.a" only deal with the 64bit object files in the archive.a ,ignore the all 32bit object files in the archive.a 2. "llvm-nm -X32 xcoffobj32.o xcoffobj64.o " only deal with the 32bit object file "xcoffobj32.o" , 64bit object file "xcoffobj64.o" will be ignored Reviewers: James Henderson,Fangrui Song Differential Revision: https://reviews.llvm.org/D118193
13 lines
312 B
LLVM
13 lines
312 B
LLVM
target triple = "powerpc64le-unknown-linux-gnu"
|
|
|
|
@C64 = dso_local global i32 5, align 4
|
|
@static_var64 = internal global i32 2, align 4
|
|
|
|
define dso_local signext i32 @bar64() #0 {
|
|
entry:
|
|
%0 = load i32, i32* @static_var64, align 4
|
|
%1 = load i32, i32* @C64, align 4
|
|
%add = add nsw i32 %0, %1
|
|
ret i32 %add
|
|
}
|