Mercurial > hg > CbC > CbC_llvm
view test/Other/extract.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 | afa8332a0e37 |
line wrap: on
line source
; RUN: llvm-extract -func foo -S < %s | FileCheck %s ; RUN: llvm-extract -delete -func foo -S < %s | FileCheck --check-prefix=DELETE %s ; RUN: llvm-as < %s > %t ; RUN: llvm-extract -func foo -S %t | FileCheck %s ; RUN: llvm-extract -delete -func foo -S %t | FileCheck --check-prefix=DELETE %s ; llvm-extract uses lazy bitcode loading, so make sure it correctly reads ; from bitcode files in addition to assembly files. ; CHECK: define hidden void @foo() { ; CHECK: ret void ; CHECK: } ; The private linkage for foo() should be changed to external linkage and ; hidden visibility added. ; DELETE: declare hidden void @foo() ; DELETE: define void @bar() { ; DELETE: call void @foo() ; DELETE: ret void ; DELETE: } define private void @foo() { ret void } define void @bar() { call void @foo() ret void }