• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -filetype=obj %s -o - | llvm-readobj -s | FileCheck %s
2
3; Test the mechanism for defining user custom sections.
4
5target triple = "wasm32-unknown-unknown"
6
7!0 = !{ !"red", !"foo" }
8!1 = !{ !"green", !"bar" }
9!2 = !{ !"green", !"qux" }
10!wasm.custom_sections = !{ !0, !1, !2 }
11
12; CHECK:  Section {
13; CHECK:    Type: CUSTOM (0x0)
14; CHECK:    Size: 3
15; CHECK:    Offset: 72
16; CHECK:    Name: red
17; CHECK:  }
18; CHECK:  Section {
19; CHECK:    Type: CUSTOM (0x0)
20; CHECK:    Size: 6
21; CHECK:    Offset: 85
22; CHECK:    Name: green
23; CHECK:  }
24