mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-26 05:56:51 +00:00
96052a8d12
This should allow llvm-ar to be used instead of gnu ar + plugin in a LTO build. I will add a release note about it once I finish a LTO bootstrap with it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212287 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
552 B
LLVM
21 lines
552 B
LLVM
; RUN: llvm-as %s -o=%t1
|
|
; RUN: rm -f %t2
|
|
; RUN: llvm-ar rcs %t2 %t1
|
|
; RUN: llvm-nm -s %t2 | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
module asm ".global global_asm_sym"
|
|
module asm "global_asm_sym:"
|
|
module asm "local_asm_sym:"
|
|
module asm ".long undef_asm_sym"
|
|
|
|
; CHECK: Archive map
|
|
; CHECK-NEXT: global_asm_sym in archive-ir-asm.ll
|
|
|
|
; CHECK: archive-ir-asm.ll
|
|
; CHECK-NEXT: T global_asm_sym
|
|
; CHECK-NEXT: t local_asm_sym
|
|
; CHECK-NEXT: U undef_asm_sym
|