summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/static-init-wasm.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2017-12-05 17:46:17 +0000
committerDan Gohman <dan433584@gmail.com>2017-12-05 17:46:17 +0000
commitb24e9dbafe978aad980a3070e97716940b988426 (patch)
treeaeb1fef195ee07f7a1ffb62993265672c7c37c56 /clang/test/CodeGenCXX/static-init-wasm.cpp
parent465062745efdd33338df7fde2fb905eb20db2c1b (diff)
downloadbcm5719-llvm-b24e9dbafe978aad980a3070e97716940b988426.tar.gz
bcm5719-llvm-b24e9dbafe978aad980a3070e97716940b988426.zip
[WebAssembly] Don't use Wasm function sections for more than one function
Patch by Nicholas Wilson! Fixes PR35467. Differential Revision: https://reviews.llvm.org/D40738 llvm-svn: 319801
Diffstat (limited to 'clang/test/CodeGenCXX/static-init-wasm.cpp')
-rw-r--r--clang/test/CodeGenCXX/static-init-wasm.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/CodeGenCXX/static-init-wasm.cpp b/clang/test/CodeGenCXX/static-init-wasm.cpp
index 5f2f94fd85f..68d139157e2 100644
--- a/clang/test/CodeGenCXX/static-init-wasm.cpp
+++ b/clang/test/CodeGenCXX/static-init-wasm.cpp
@@ -43,12 +43,12 @@ struct A {
A theA;
-// WEBASSEMBLY32: define internal void @__cxx_global_var_init() #3 section ".text.__startup" {
+// WEBASSEMBLY32: define internal void @__cxx_global_var_init() #3 {
// WEBASSEMBLY32: call %struct.A* @_ZN1AC1Ev(%struct.A* @theA)
-// WEBASSEMBLY32: define internal void @_GLOBAL__sub_I_static_init_wasm.cpp() #3 section ".text.__startup" {
+// WEBASSEMBLY32: define internal void @_GLOBAL__sub_I_static_init_wasm.cpp() #3 {
// WEBASSEMBLY32: call void @__cxx_global_var_init()
//
-// WEBASSEMBLY64: define internal void @__cxx_global_var_init() #3 section ".text.__startup" {
+// WEBASSEMBLY64: define internal void @__cxx_global_var_init() #3 {
// WEBASSEMBLY64: call %struct.A* @_ZN1AC1Ev(%struct.A* @theA)
-// WEBASSEMBLY64: define internal void @_GLOBAL__sub_I_static_init_wasm.cpp() #3 section ".text.__startup" {
+// WEBASSEMBLY64: define internal void @_GLOBAL__sub_I_static_init_wasm.cpp() #3 {
// WEBASSEMBLY64: call void @__cxx_global_var_init()
OpenPOWER on IntegriCloud