diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-09-10 20:43:12 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-09-10 20:43:12 +0000 |
commit | c5c6fa78fd0e6a15c5611e8a059359054cfbf9d5 (patch) | |
tree | a41df25c02762d33384ccfc4494168b0dee8ca0c /test/CodeGenCXX/microsoft-abi-static-initializers.cpp | |
parent | bdbaac7a914ad39921464df54c66651f2a896f3b (diff) |
[ms-cxxabi] Mangle dynamic initializer stubs the same way MSVC does
Summary: Dynamic initializers are mangled as ??__E <name> YAXXZ.
Reviewers: timurrrr
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1477
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/microsoft-abi-static-initializers.cpp')
-rw-r--r-- | test/CodeGenCXX/microsoft-abi-static-initializers.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/CodeGenCXX/microsoft-abi-static-initializers.cpp b/test/CodeGenCXX/microsoft-abi-static-initializers.cpp index 6c4e9e72f4..53d82f60b3 100644 --- a/test/CodeGenCXX/microsoft-abi-static-initializers.cpp +++ b/test/CodeGenCXX/microsoft-abi-static-initializers.cpp @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -emit-llvm %s -o - -cxx-abi microsoft -triple=i386-pc-win32 | FileCheck %s // CHECK: @llvm.global_ctors = appending global [2 x { i32, void ()* }] -// CHECK: [{ i32, void ()* } { i32 65535, void ()* [[INIT_foo:@.*global_var.*]] }, +// CHECK: [{ i32, void ()* } { i32 65535, void ()* @"\01??__Efoo@?$B@H@@YAXXZ" }, // CHECK: { i32, void ()* } { i32 65535, void ()* @_GLOBAL__I_a }] struct S { @@ -11,7 +11,7 @@ struct S { S s; -// CHECK: define internal void [[INIT_s:@.*global_var.*]] [[NUW:#[0-9]+]] +// CHECK: define internal void @"\01??__Es@@YAXXZ"() [[NUW:#[0-9]+]] // CHECK: %{{[.0-9A-Z_a-z]+}} = call x86_thiscallcc %struct.S* @"\01??0S@@QAE@XZ" // CHECK: call i32 @atexit(void ()* @"\01??__Fs@@YAXXZ") // CHECK: ret void @@ -134,7 +134,7 @@ void force_usage() { (void)B<int>::foo; // (void) - force usage } -// CHECK: define internal void [[INIT_foo]]() [[NUW]] +// CHECK: define internal void @"\01??__Efoo@?$B@H@@YAXXZ"() [[NUW]] // CHECK: %{{[.0-9A-Z_a-z]+}} = call x86_thiscallcc %class.A* @"\01??0A@@QAE@XZ" // CHECK: call i32 @atexit(void ()* @"\01??__Ffoo@?$B@H@@YAXXZ") // CHECK: ret void @@ -148,7 +148,7 @@ void force_usage() { // CHECK: ret void // CHECK: define internal void @_GLOBAL__I_a() [[NUW]] { -// CHECK: call void [[INIT_s]] +// CHECK: call void @"\01??__Es@@YAXXZ"() // CHECK: ret void // CHECK: attributes [[NUW]] = { nounwind } |