runtime-library.ll 487 B

123456789101112131415161718192021222324252627
  1. ; runtime library implementations should be added to llvm.compiler.used
  2. ; RUN: llvm-as <%s >%t1
  3. ; RUN: llvm-lto -o %t2 %t1
  4. ; RUN: llvm-nm -no-sort %t2 | FileCheck %s -check-prefix=KEEP -check-prefix=LOSE
  5. target triple = "x86_64-apple-darwin9"
  6. ; KEEP-LABEL: _puts
  7. define void @puts() {
  8. ret void
  9. }
  10. ; KEEP-LABEL: ___divti3
  11. define void @__divti3() {
  12. ret void
  13. }
  14. ; KEEP-LABEL: _memset
  15. define void @memset() {
  16. ret void
  17. }
  18. ; LOSE-NOT: _myprintf
  19. define void @myprintf() {
  20. ret void
  21. }