diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-29 01:59:03 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-29 01:59:03 +0000 |
commit | 9cb90e7c1578de19d00806cc121a8ef5ad6c9089 (patch) | |
tree | 065f8cdfa901540cf70cc0951937fed4851f2c58 /test/Other/extract.ll | |
parent | c0916d30e09192b7023e453aaa7d2ffe026345ed (diff) | |
download | external_llvm-9cb90e7c1578de19d00806cc121a8ef5ad6c9089.zip external_llvm-9cb90e7c1578de19d00806cc121a8ef5ad6c9089.tar.gz external_llvm-9cb90e7c1578de19d00806cc121a8ef5ad6c9089.tar.bz2 |
llvm-extract changes linkages so that functions on both sides of the
split module can see each other. If it is keeping a symbol that already has
a non local linkage, it doesn't need to change it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166908 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Other/extract.ll')
-rw-r--r-- | test/Other/extract.ll | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/Other/extract.ll b/test/Other/extract.ll index 57573ed..8b0c835 100644 --- a/test/Other/extract.ll +++ b/test/Other/extract.ll @@ -7,18 +7,19 @@ ; llvm-extract uses lazy bitcode loading, so make sure it correctly reads ; from bitcode files in addition to assembly files. -; CHECK: define void @foo() { +; CHECK: define hidden void @foo() { ; CHECK: ret void ; CHECK: } -; The linkonce_odr linkage for foo() should be changed to external linkage. -; DELETE: declare void @foo() +; 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 linkonce_odr void @foo() { +define private void @foo() { ret void } define void @bar() { |