diff options
| author | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-11 23:26:46 +0000 |
|---|---|---|
| committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-11 23:26:46 +0000 |
| commit | ae280e54a9865b82930a777b14735d7438630fa4 (patch) | |
| tree | 7a55a90b355bd1f50fe088f09bc99ad80f3f7830 /llvm/test/Linker/funcimport.ll | |
| parent | ea7eb841a1a9b2d15923852964b563f389bc06bc (diff) | |
| download | bcm5719-llvm-ae280e54a9865b82930a777b14735d7438630fa4.tar.gz bcm5719-llvm-ae280e54a9865b82930a777b14735d7438630fa4.zip | |
ThinLTO renaming: use module hash instead of position in the summary
This is more robust to changes in the link ordering.
Differential Revision: http://reviews.llvm.org/D18946
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 266018
Diffstat (limited to 'llvm/test/Linker/funcimport.ll')
| -rw-r--r-- | llvm/test/Linker/funcimport.ll | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/llvm/test/Linker/funcimport.ll b/llvm/test/Linker/funcimport.ll index c8a0bfef429..aec3f4cceb6 100644 --- a/llvm/test/Linker/funcimport.ll +++ b/llvm/test/Linker/funcimport.ll @@ -13,11 +13,11 @@ ; Ensure statics are promoted/renamed correctly from this file (all but ; constant variable need promotion). ; RUN: llvm-link %t.bc -summary-index=%t3.thinlto.bc -S | FileCheck %s --check-prefix=EXPORTSTATIC -; EXPORTSTATIC-DAG: @staticvar.llvm.1 = hidden global +; EXPORTSTATIC-DAG: @staticvar.llvm.{{.*}} = hidden global ; EXPORTSTATIC-DAG: @staticconstvar = internal unnamed_addr constant -; EXPORTSTATIC-DAG: @P.llvm.1 = hidden global void ()* null -; EXPORTSTATIC-DAG: define hidden i32 @staticfunc.llvm.1 -; EXPORTSTATIC-DAG: define hidden void @staticfunc2.llvm.1 +; EXPORTSTATIC-DAG: @P.llvm.{{.*}} = hidden global void ()* null +; EXPORTSTATIC-DAG: define hidden i32 @staticfunc.llvm. +; EXPORTSTATIC-DAG: define hidden void @staticfunc2.llvm. ; Ensure that both weak alias to an imported function and strong alias to a ; non-imported function are correctly turned into declarations. @@ -67,12 +67,12 @@ ; Ensure that imported static variable and function references are correctly ; promoted and renamed (including static constant variable). ; RUN: llvm-link %t2.bc -summary-index=%t3.thinlto.bc -import=referencestatics:%t.bc -S | FileCheck %s --check-prefix=IMPORTSTATIC -; IMPORTSTATIC-DAG: @staticvar.llvm.1 = external hidden global -; IMPORTSTATIC-DAG: @staticconstvar.llvm.1 = internal unnamed_addr constant +; IMPORTSTATIC-DAG: @staticvar.llvm.{{.*}} = external hidden global +; IMPORTSTATIC-DAG: @staticconstvar.llvm.{{.*}} = internal unnamed_addr constant ; IMPORTSTATIC-DAG: define available_externally i32 @referencestatics -; IMPORTSTATIC-DAG: %call = call i32 @staticfunc.llvm.1 -; IMPORTSTATIC-DAG: %0 = load i32, i32* @staticvar.llvm.1 -; IMPORTSTATIC-DAG: declare hidden i32 @staticfunc.llvm.1 +; IMPORTSTATIC-DAG: %call = call i32 @staticfunc.llvm. +; IMPORTSTATIC-DAG: %0 = load i32, i32* @staticvar.llvm. +; IMPORTSTATIC-DAG: declare hidden i32 @staticfunc.llvm. ; Ensure that imported global (external) function and variable references ; are handled correctly (including referenced variable imported as @@ -89,9 +89,9 @@ ; Ensure that imported static function pointer correctly promoted and renamed. ; RUN: llvm-link %t2.bc -summary-index=%t3.thinlto.bc -import=callfuncptr:%t.bc -S | FileCheck %s --check-prefix=IMPORTFUNCPTR -; IMPORTFUNCPTR-DAG: @P.llvm.1 = external hidden global void ()* +; IMPORTFUNCPTR-DAG: @P.llvm.{{.*}} = external hidden global void ()* ; IMPORTFUNCPTR-DAG: define available_externally void @callfuncptr -; IMPORTFUNCPTR-DAG: %0 = load void ()*, void ()** @P.llvm.1 +; IMPORTFUNCPTR-DAG: %0 = load void ()*, void ()** @P.llvm. ; Ensure that imported weak function reference/definition handled properly. ; Imported weak_any definition should be skipped with warning, and imported |

