diff options
author | Sam Clegg <sbc@chromium.org> | 2017-12-14 21:10:03 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2017-12-14 21:10:03 +0000 |
commit | e1acb56f11946214ba2903e25c7cce3d9e5f7791 (patch) | |
tree | 116d9304faf586a507e28272bca84147a44a6f5e /test | |
parent | 00bb3b5609d49633f5c456b414e80bc72da728aa (diff) |
[WebAssembly] Add support for init functions linking metadata
Summary:
This change lays the groundwork lowering of @llvm.global_ctors
and @llvm.global_dtors for the wasm object format. Some parts
of this patch are subset of: https://reviews.llvm.org/D40759
See https://github.com/WebAssembly/tool-conventions/issues/25
Subscribers: jfb, dschuff, jgravelle-google, aheejin, sunfish
Differential Revision: https://reviews.llvm.org/D41208
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320742 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/ObjectYAML/wasm/linking_section.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ObjectYAML/wasm/linking_section.yaml b/test/ObjectYAML/wasm/linking_section.yaml index 3494a9adddc..e413bd3f1ea 100644 --- a/test/ObjectYAML/wasm/linking_section.yaml +++ b/test/ObjectYAML/wasm/linking_section.yaml @@ -41,6 +41,9 @@ Sections: Alignment: 2 Flags: [ ] Name: moredata + InitFunctions: + - Priority: 1 + FunctionIndex: 0 ... # CHECK: - Type: CUSTOM # CHECK-NEXT: Name: linking @@ -57,4 +60,7 @@ Sections: # CHECK-NEXT: Name: moredata # CHECK-NEXT: Alignment: 2 # CHECK-NEXT: Flags: [ ] +# CHECK-NEXT: InitFunctions: +# CHECK-NEXT: - Priority: 1 +# CHECK-NEXT: FunctionIndex: 0 # CHECK-NEXT: ... |