symver-asm.ll 501 B

12345678910111213141516
  1. ; RUN: llvm-as < %s >%t1
  2. ; RUN: llvm-lto -o %t2 %t1
  3. ; RUN: llvm-nm %t2 | FileCheck %s
  4. target triple = "x86_64-unknown-linux-gnu"
  5. module asm ".symver io_cancel_0_4,io_cancel@@LIBAIO_0.4"
  6. ; Even without -exported-symbol, io_cancel_0_4 should be noticed by LTOModule's
  7. ; RecordStreamer, so it shouldn't get eliminated. However, the object file will
  8. ; contain the aliased symver as well as the original.
  9. define i32 @io_cancel_0_4() {
  10. ; CHECK: io_cancel@@LIBAIO_0.4
  11. ; CHECK: io_cancel_0_4
  12. ret i32 0
  13. }