view test/LTO/runtime-library.ll @ 52:c22698ecb2a9

modified CreateIdentifierInfo and create new function which was named 'CreateUniqueIdentifierInfo'.
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Wed, 15 Jan 2014 21:01:33 +0900
parents 95c75e76d11b
children
line wrap: on
line source

; runtime library implementations should be added to llvm.compiler.used
; RUN: llvm-as <%s >%t1
; RUN: llvm-lto -o %t2 %t1
; RUN: llvm-nm -no-sort %t2 | FileCheck %s -check-prefix=KEEP -check-prefix=LOSE

target triple = "x86_64-apple-darwin9"

; KEEP-LABEL: _puts
define void @puts() {
  ret void
}

; KEEP-LABEL: ___divti3
define void @__divti3() {
  ret void
}

; KEEP-LABEL: _memset
define void @memset() {
  ret void
}

; LOSE-NOT: _myprintf
define void @myprintf() {
  ret void
}