
This patch teaches LTOCodeGenerator to call into the AIX system assembler to generate object files. This is in contrast to the approach taken on other platforms, where the LTOCodeGenerate calls the integrated assembler to generate object files. We need to rely on the system assembler because the integrated assembler is incomplete at the moment. Reviewed By: w2yehia, MaskRay Differential Revision: https://reviews.llvm.org/D134375
13 lines
198 B
LLVM
13 lines
198 B
LLVM
; REQUIRES: system-aix
|
|
; RUN: llvm-as < %s > %t1
|
|
; RUN: llvm-lto %t1 | FileCheck %s
|
|
|
|
target triple = "powerpc-ibm-aix"
|
|
|
|
define i32 @main() {
|
|
entry:
|
|
ret i32 42
|
|
}
|
|
; CHECK: Wrote native object file
|
|
|