diff options
author | Fangrui Song <maskray@google.com> | 2020-02-03 10:09:39 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-02-03 10:09:39 -0800 |
commit | dbc96b518b619d37aacf670e1a9d3b90b5614dd2 (patch) | |
tree | 90d1809ecfa1534e7efd6b7a9fcb494cd57e7a31 /clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp | |
parent | 7c3becf4231cde79b0448756e5bfc4ef5bd76089 (diff) | |
download | llvm-dbc96b518b619d37aacf670e1a9d3b90b5614dd2.zip llvm-dbc96b518b619d37aacf670e1a9d3b90b5614dd2.tar.gz llvm-dbc96b518b619d37aacf670e1a9d3b90b5614dd2.tar.bz2 |
Revert "[CodeGenModule] Assume dso_local for -fpic -fno-semantic-interposition"
This reverts commit 789a46f2d742e11edaade28cb59a0f4d2a1d770e.
Accidentally committed.
Diffstat (limited to 'clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp b/clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp index e89a197..e3c7e26 100644 --- a/clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp +++ b/clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp @@ -1,5 +1,5 @@ -// RUN: %clang_cc1 -std=c++11 -triple x86_64-none-linux-gnu -fmerge-all-constants -emit-llvm -o - %s -fsemantic-interposition | FileCheck -check-prefixes=X86,CHECK %s -// RUN: %clang_cc1 -std=c++11 -triple amdgcn-amd-amdhsa -DNO_TLS -fmerge-all-constants -emit-llvm -o - %s -fsemantic-interposition | FileCheck -check-prefixes=AMDGCN,CHECK %s +// RUN: %clang_cc1 -std=c++11 -triple x86_64-none-linux-gnu -fmerge-all-constants -emit-llvm -o - %s | FileCheck -check-prefixes=X86,CHECK %s +// RUN: %clang_cc1 -std=c++11 -triple amdgcn-amd-amdhsa -DNO_TLS -fmerge-all-constants -emit-llvm -o - %s | FileCheck -check-prefixes=AMDGCN,CHECK %s namespace std { typedef decltype(sizeof(int)) size_t; @@ -118,7 +118,7 @@ std::initializer_list<witharg1> globalInitList2 = { }; void fn1(int i) { - // CHECK-LABEL: define dso_local void @_Z3fn1i + // CHECK-LABEL: define void @_Z3fn1i // temporary array // X86: [[array:%[^ ]+]] = alloca [3 x i32] // AMDGCN: [[alloca:%[^ ]+]] = alloca [3 x i32], align 4, addrspace(5) @@ -140,7 +140,7 @@ void fn1(int i) { } void fn2() { - // CHECK-LABEL: define dso_local void @_Z3fn2v + // CHECK-LABEL: define void @_Z3fn2v void target(std::initializer_list<destroyme1>); // objects should be destroyed before dm2, after call returns // CHECK: call void @_Z6targetSt16initializer_listI10destroyme1E @@ -151,7 +151,7 @@ void fn2() { } void fn3() { - // CHECK-LABEL: define dso_local void @_Z3fn3v + // CHECK-LABEL: define void @_Z3fn3v // objects should be destroyed after dm2 auto list = { destroyme1(), destroyme1() }; destroyme2 dm2; @@ -160,7 +160,7 @@ void fn3() { } void fn4() { - // CHECK-LABEL: define dso_local void @_Z3fn4v + // CHECK-LABEL: define void @_Z3fn4v void target(std::initializer_list<witharg1>); // objects should be destroyed before dm2, after call returns // CHECK: call void @_ZN8witharg1C1ERK10destroyme1 @@ -173,7 +173,7 @@ void fn4() { } void fn5() { - // CHECK-LABEL: define dso_local void @_Z3fn5v + // CHECK-LABEL: define void @_Z3fn5v // temps should be destroyed before dm2 // objects should be destroyed after dm2 // CHECK: call void @_ZN8witharg1C1ERK10destroyme1 @@ -185,7 +185,7 @@ void fn5() { } void fn6() { - // CHECK-LABEL: define dso_local void @_Z3fn6v + // CHECK-LABEL: define void @_Z3fn6v void target(const wantslist1&); // objects should be destroyed before dm2, after call returns // CHECK: call void @_ZN10wantslist1C1ESt16initializer_listI10destroyme1E @@ -197,7 +197,7 @@ void fn6() { // CHECK: call void @_ZN10destroyme2D1Ev } void fn7() { - // CHECK-LABEL: define dso_local void @_Z3fn7v + // CHECK-LABEL: define void @_Z3fn7v // temps should be destroyed before dm2 // object should be destroyed after dm2 // CHECK: call void @_ZN10wantslist1C1ESt16initializer_listI10destroyme1E @@ -209,7 +209,7 @@ void fn7() { } void fn8() { - // CHECK-LABEL: define dso_local void @_Z3fn8v + // CHECK-LABEL: define void @_Z3fn8v void target(std::initializer_list<std::initializer_list<destroyme1>>); // objects should be destroyed before dm2, after call returns // CHECK: call void @_Z6targetSt16initializer_listIS_I10destroyme1EE @@ -223,7 +223,7 @@ void fn8() { } void fn9() { - // CHECK-LABEL: define dso_local void @_Z3fn9v + // CHECK-LABEL: define void @_Z3fn9v // objects should be destroyed after dm2 std::initializer_list<destroyme1> inner; std::initializer_list<std::initializer_list<destroyme1>> list = @@ -237,7 +237,7 @@ void fn9() { } void fn10(int i) { - // CHECK-LABEL: define dso_local void @_Z4fn10i + // CHECK-LABEL: define void @_Z4fn10i // CHECK: alloca [3 x i32] // CHECK: call i8* @_Znw{{[jm]}} // CHECK: store i32 % @@ -248,7 +248,7 @@ void fn10(int i) { } void fn11() { - // CHECK-LABEL: define dso_local void @_Z4fn11v + // CHECK-LABEL: define void @_Z4fn11v (void) new std::initializer_list<destroyme1> {destroyme1(), destroyme1()}; // CHECK: call void @_ZN10destroyme1D1Ev destroyme2 dm2; @@ -276,7 +276,7 @@ namespace PR12178 { namespace rdar13325066 { struct X { ~X(); }; - // CHECK-LABEL: define dso_local void @_ZN12rdar133250664loopERNS_1XES1_ + // CHECK-LABEL: define void @_ZN12rdar133250664loopERNS_1XES1_ void loop(X &x1, X &x2) { // CHECK: br label // CHECK: br i1 @@ -299,7 +299,7 @@ namespace dtors { }; void z(); - // CHECK-LABEL: define dso_local void @_ZN5dtors1fEv( + // CHECK-LABEL: define void @_ZN5dtors1fEv( void f() { // CHECK: call void @_ZN5dtors1SC1Ev( // CHECK: call void @_ZN5dtors1SC1Ev( @@ -316,7 +316,7 @@ namespace dtors { // CHECK-NOT: call void @_ZN5dtors1SD1Ev( } - // CHECK-LABEL: define dso_local void @_ZN5dtors1gEv( + // CHECK-LABEL: define void @_ZN5dtors1gEv( void g() { // CHECK: call void @_ZN5dtors1SC1Ev( // CHECK: call void @_ZN5dtors1SC1Ev( @@ -333,7 +333,7 @@ namespace dtors { // CHECK-NOT: call void @_ZN5dtors1SD1Ev( } - // CHECK-LABEL: define dso_local void @_ZN5dtors1hEv( + // CHECK-LABEL: define void @_ZN5dtors1hEv( void h() { // CHECK: call void @_ZN5dtors1SC1Ev( // CHECK: call void @_ZN5dtors1SC1Ev( @@ -391,7 +391,7 @@ namespace nested { struct B { const A &a; ~B(); }; struct C { std::initializer_list<B> b; ~C(); }; void f(); - // CHECK-LABEL: define dso_local void @_ZN6nested1gEv( + // CHECK-LABEL: define void @_ZN6nested1gEv( void g() { // CHECK: call void @_ZN6nested1AC1Ev( // CHECK-NOT: call |