diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-12-02 22:22:24 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-12-02 22:22:24 +0000 |
| commit | 8c04472edf7f1248e400ea4e08ac0d19bd481715 (patch) | |
| tree | c02839f156c6729e94527475ad9533df6e43ddc8 /llvm/test/Linker/funcimport.ll | |
| parent | b3757c008b89c4896d4848b847a513c2c998c1a6 (diff) | |
| download | bcm5719-llvm-8c04472edf7f1248e400ea4e08ac0d19bd481715.tar.gz bcm5719-llvm-8c04472edf7f1248e400ea4e08ac0d19bd481715.zip | |
Delete what is now duplicated code.
Having to import an alias as declaration is not thinlto specific.
The test difference are because when we already have a decl and we are
not importing it, we just leave the decl alone.
llvm-svn: 254556
Diffstat (limited to 'llvm/test/Linker/funcimport.ll')
| -rw-r--r-- | llvm/test/Linker/funcimport.ll | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/Linker/funcimport.ll b/llvm/test/Linker/funcimport.ll index 8a71e21d0ad..1e6c0ec6484 100644 --- a/llvm/test/Linker/funcimport.ll +++ b/llvm/test/Linker/funcimport.ll @@ -27,36 +27,36 @@ ; RUN: llvm-link %t2.bc -functionindex=%t3.thinlto.bc -import=globalfunc1:%t.bc -S | FileCheck %s --check-prefix=IMPORTGLOB1 ; IMPORTGLOB1-DAG: define available_externally void @globalfunc1 ; IMPORTGLOB1-DAG: declare void @globalfunc2 -; IMPORTGLOB1-DAG: declare extern_weak void @weakalias +; IMPORTGLOB1-DAG: declare void @weakalias ; IMPORTGLOB1-DAG: declare void @analias -; IMPORTGLOB1-DAG: declare void @linkoncealias +; IMPORTGLOB1-DAG: @linkoncealias = external global ; IMPORTGLOB1-NOT: @linkoncefunc ; Ensure that weak alias to a non-imported function is correctly ; turned into a declaration, but that strong alias to an imported function ; is imported as alias. ; RUN: llvm-link %t2.bc -functionindex=%t3.thinlto.bc -import=globalfunc2:%t.bc -S | FileCheck %s --check-prefix=IMPORTGLOB2 -; IMPORTGLOB2-DAG: declare void @analias() +; IMPORTGLOB2-DAG: declare void @analias ; IMPORTGLOB2-DAG: declare void @globalfunc1 ; IMPORTGLOB2-DAG: define available_externally void @globalfunc2 -; IMPORTGLOB2-DAG: declare extern_weak void @weakalias +; IMPORTGLOB2-DAG: declare void @weakalias ; Ensure that strong alias imported in second pass of importing ends up ; as an alias. ; RUN: llvm-link %t2.bc -functionindex=%t3.thinlto.bc -import=globalfunc1:%t.bc -import=globalfunc2:%t.bc -S | FileCheck %s --check-prefix=IMPORTGLOB3 -; IMPORTGLOB3-DAG: declare void @analias() +; IMPORTGLOB3-DAG: declare void @analias ; IMPORTGLOB3-DAG: define available_externally void @globalfunc1 ; IMPORTGLOB3-DAG: define available_externally void @globalfunc2 -; IMPORTGLOB3-DAG: declare extern_weak void @weakalias +; IMPORTGLOB3-DAG: declare void @weakalias ; Ensure that strong alias imported in first pass of importing ends up ; as an alias, and that seeing the alias definition during a second inlining ; pass is handled correctly. ; RUN: llvm-link %t2.bc -functionindex=%t3.thinlto.bc -import=globalfunc2:%t.bc -import=globalfunc1:%t.bc -S | FileCheck %s --check-prefix=IMPORTGLOB4 -; IMPORTGLOB4-DAG: declare void @analias() +; IMPORTGLOB4-DAG: declare void @analias ; IMPORTGLOB4-DAG: define available_externally void @globalfunc2 ; IMPORTGLOB4-DAG: define available_externally void @globalfunc1 -; IMPORTGLOB4-DAG: declare extern_weak void @weakalias +; IMPORTGLOB4-DAG: declare void @weakalias ; An alias to an imported function is imported as alias if the function is not ; available_externally. |

