2018-01-24 11:29:47 +08:00
|
|
|
; RUN: llc -filetype=obj %p/Inputs/hello.ll -o %t.hello.o
|
|
|
|
; RUN: llc -filetype=obj %s -o %t.o
|
2017-11-18 02:14:09 +08:00
|
|
|
; RUN: lld -flavor wasm -r -o %t.wasm %t.hello.o %t.o
|
|
|
|
; RUN: obj2yaml %t.wasm | FileCheck %s
|
|
|
|
|
2018-01-24 11:29:47 +08:00
|
|
|
target triple = "wasm32-unknown-unknown-wasm"
|
|
|
|
|
2017-11-18 02:14:09 +08:00
|
|
|
; Function Attrs: nounwind
|
|
|
|
define hidden i32 @my_func() local_unnamed_addr {
|
|
|
|
entry:
|
|
|
|
%call = tail call i32 @foo_import()
|
2018-01-20 04:56:20 +08:00
|
|
|
%call2 = tail call i32 @bar_import()
|
2017-11-18 02:14:09 +08:00
|
|
|
ret i32 1
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i32 @foo_import() local_unnamed_addr
|
2018-01-20 04:56:20 +08:00
|
|
|
declare extern_weak i32 @bar_import() local_unnamed_addr
|
2017-11-18 02:14:09 +08:00
|
|
|
@data_import = external global i64
|
|
|
|
|
|
|
|
@func_addr1 = hidden global i32()* @my_func, align 4
|
|
|
|
@func_addr2 = hidden global i32()* @foo_import, align 4
|
2018-01-20 04:56:20 +08:00
|
|
|
@func_addr3 = hidden global i32()* @bar_import, align 4
|
2017-11-18 02:14:09 +08:00
|
|
|
@data_addr1 = hidden global i64* @data_import, align 8
|
|
|
|
|
2018-01-13 06:25:17 +08:00
|
|
|
$func_comdat = comdat any
|
|
|
|
@data_comdat = weak_odr constant [3 x i8] c"abc", comdat($func_comdat)
|
|
|
|
define linkonce_odr i32 @func_comdat() comdat {
|
|
|
|
entry:
|
|
|
|
ret i32 ptrtoint ([3 x i8]* @data_comdat to i32)
|
|
|
|
}
|
|
|
|
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK: --- !WASM
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: FileHeader:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Version: 0x00000001
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Sections:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: TYPE
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Signatures:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Index: 0
|
|
|
|
; CHECK-NEXT: ReturnType: NORESULT
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: ParamTypes:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Index: 1
|
|
|
|
; CHECK-NEXT: ReturnType: NORESULT
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: ParamTypes:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - I32
|
|
|
|
; CHECK-NEXT: - Index: 2
|
|
|
|
; CHECK-NEXT: ReturnType: I32
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: ParamTypes:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: IMPORT
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Imports:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Module: env
|
|
|
|
; CHECK-NEXT: Field: puts
|
|
|
|
; CHECK-NEXT: Kind: FUNCTION
|
|
|
|
; CHECK-NEXT: SigIndex: 1
|
|
|
|
; CHECK-NEXT: - Module: env
|
|
|
|
; CHECK-NEXT: Field: foo_import
|
|
|
|
; CHECK-NEXT: Kind: FUNCTION
|
|
|
|
; CHECK-NEXT: SigIndex: 2
|
|
|
|
; CHECK-NEXT: - Module: env
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: Field: bar_import
|
|
|
|
; CHECK-NEXT: Kind: FUNCTION
|
|
|
|
; CHECK-NEXT: SigIndex: 2
|
|
|
|
; CHECK-NEXT: - Module: env
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Field: data_import
|
|
|
|
; CHECK-NEXT: Kind: GLOBAL
|
|
|
|
; CHECK-NEXT: GlobalType: I32
|
|
|
|
; CHECK-NEXT: GlobalMutable: false
|
|
|
|
; CHECK-NEXT: - Type: FUNCTION
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: FunctionTypes: [ 0, 2, 2 ]
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: TABLE
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Tables:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - ElemType: ANYFUNC
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Limits:
|
2017-12-14 08:34:25 +08:00
|
|
|
; CHECK-NEXT: Flags: [ HAS_MAX ]
|
2018-01-25 05:37:30 +08:00
|
|
|
; CHECK-NEXT: Initial: 0x00000004
|
|
|
|
; CHECK-NEXT: Maximum: 0x00000004
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: MEMORY
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Memories:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Initial: 0x00000001
|
|
|
|
; CHECK-NEXT: - Type: GLOBAL
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Globals:
|
2018-01-10 05:47:36 +08:00
|
|
|
; CHECK-NEXT: - Index: 1
|
|
|
|
; CHECK-NEXT: Type: I32
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Mutable: false
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: InitExpr:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
|
|
|
; CHECK-NEXT: Value: 0
|
2018-01-10 05:47:36 +08:00
|
|
|
; CHECK-NEXT: - Index: 2
|
|
|
|
; CHECK-NEXT: Type: I32
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Mutable: false
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: InitExpr:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: Value: 28
|
2018-01-10 05:47:36 +08:00
|
|
|
; CHECK-NEXT: - Index: 3
|
|
|
|
; CHECK-NEXT: Type: I32
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Mutable: false
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: InitExpr:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: Value: 8
|
2018-01-10 05:47:36 +08:00
|
|
|
; CHECK-NEXT: - Index: 4
|
|
|
|
; CHECK-NEXT: Type: I32
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Mutable: false
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: InitExpr:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: Value: 12
|
|
|
|
; CHECK-NEXT: - Index: 5
|
|
|
|
; CHECK-NEXT: Type: I32
|
|
|
|
; CHECK-NEXT: Mutable: false
|
|
|
|
; CHECK-NEXT: InitExpr:
|
|
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Value: 16
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: - Index: 6
|
|
|
|
; CHECK-NEXT: Type: I32
|
|
|
|
; CHECK-NEXT: Mutable: false
|
|
|
|
; CHECK-NEXT: InitExpr:
|
|
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
|
|
|
; CHECK-NEXT: Value: 24
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: EXPORT
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Exports:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Name: hello
|
|
|
|
; CHECK-NEXT: Kind: FUNCTION
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: Index: 3
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Name: my_func
|
|
|
|
; CHECK-NEXT: Kind: FUNCTION
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: Index: 4
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: - Name: func_comdat
|
|
|
|
; CHECK-NEXT: Kind: FUNCTION
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: Index: 5
|
2017-12-07 09:51:24 +08:00
|
|
|
; CHECK-NEXT: - Name: hello_str
|
|
|
|
; CHECK-NEXT: Kind: GLOBAL
|
|
|
|
; CHECK-NEXT: Index: 1
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: - Name: data_comdat
|
2017-12-07 09:51:24 +08:00
|
|
|
; CHECK-NEXT: Kind: GLOBAL
|
|
|
|
; CHECK-NEXT: Index: 2
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: - Name: func_addr1
|
2017-12-07 09:51:24 +08:00
|
|
|
; CHECK-NEXT: Kind: GLOBAL
|
|
|
|
; CHECK-NEXT: Index: 3
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: - Name: func_addr2
|
2017-12-07 09:51:24 +08:00
|
|
|
; CHECK-NEXT: Kind: GLOBAL
|
|
|
|
; CHECK-NEXT: Index: 4
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: - Name: func_addr3
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: Kind: GLOBAL
|
|
|
|
; CHECK-NEXT: Index: 5
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: - Name: data_addr1
|
|
|
|
; CHECK-NEXT: Kind: GLOBAL
|
|
|
|
; CHECK-NEXT: Index: 6
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: ELEM
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Segments:
|
|
|
|
; CHECK-NEXT: - Offset:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
2018-01-25 05:37:30 +08:00
|
|
|
; CHECK-NEXT: Value: 1
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: Functions: [ 4, 1, 2 ]
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: CODE
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Relocations:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: R_WEBASSEMBLY_MEMORY_ADDR_SLEB
|
|
|
|
; CHECK-NEXT: Index: 1
|
|
|
|
; CHECK-NEXT: Offset: 0x00000004
|
|
|
|
; CHECK-NEXT: - Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB
|
|
|
|
; CHECK-NEXT: Index: 0
|
|
|
|
; CHECK-NEXT: Offset: 0x0000000A
|
|
|
|
; CHECK-NEXT: - Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB
|
|
|
|
; CHECK-NEXT: Index: 1
|
|
|
|
; CHECK-NEXT: Offset: 0x00000013
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: - Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB
|
|
|
|
; CHECK-NEXT: Index: 2
|
|
|
|
; CHECK-NEXT: Offset: 0x0000001A
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: - Type: R_WEBASSEMBLY_MEMORY_ADDR_SLEB
|
|
|
|
; CHECK-NEXT: Index: 2
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: Offset: 0x00000026
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Functions:
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: - Index: 3
|
2018-01-10 05:47:36 +08:00
|
|
|
; CHECK-NEXT: Locals:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Body: 4180808080001080808080000B
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: - Index: 4
|
2018-01-10 05:47:36 +08:00
|
|
|
; CHECK-NEXT: Locals:
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: Body: 1081808080001A1082808080001A41010B
|
|
|
|
; CHECK-NEXT: - Index: 5
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: Locals:
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: Body: 419C808080000B
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: DATA
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Relocations:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: R_WEBASSEMBLY_TABLE_INDEX_I32
|
2018-01-23 09:25:56 +08:00
|
|
|
; CHECK-NEXT: Index: 4
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Offset: 0x00000012
|
|
|
|
; CHECK-NEXT: - Type: R_WEBASSEMBLY_TABLE_INDEX_I32
|
|
|
|
; CHECK-NEXT: Index: 1
|
|
|
|
; CHECK-NEXT: Offset: 0x0000001B
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: - Type: R_WEBASSEMBLY_TABLE_INDEX_I32
|
|
|
|
; CHECK-NEXT: Index: 2
|
|
|
|
; CHECK-NEXT: Offset: 0x00000024
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: R_WEBASSEMBLY_MEMORY_ADDR_I32
|
|
|
|
; CHECK-NEXT: Index: 0
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: Offset: 0x0000002D
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Segments:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - SectionOffset: 6
|
|
|
|
; CHECK-NEXT: MemoryIndex: 0
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Offset:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
|
|
|
; CHECK-NEXT: Value: 0
|
|
|
|
; CHECK-NEXT: Content: 68656C6C6F0A00
|
|
|
|
; CHECK-NEXT: - SectionOffset: 18
|
|
|
|
; CHECK-NEXT: MemoryIndex: 0
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Offset:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
|
|
|
; CHECK-NEXT: Value: 8
|
2018-01-25 05:37:30 +08:00
|
|
|
; CHECK-NEXT: Content: '01000000'
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - SectionOffset: 27
|
|
|
|
; CHECK-NEXT: MemoryIndex: 0
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Offset:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
|
|
|
; CHECK-NEXT: Value: 12
|
2018-01-25 05:37:30 +08:00
|
|
|
; CHECK-NEXT: Content: '02000000'
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - SectionOffset: 36
|
|
|
|
; CHECK-NEXT: MemoryIndex: 0
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Offset:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
|
|
|
; CHECK-NEXT: Value: 16
|
2018-01-25 05:37:30 +08:00
|
|
|
; CHECK-NEXT: Content: '03000000'
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: - SectionOffset: 45
|
|
|
|
; CHECK-NEXT: MemoryIndex: 0
|
|
|
|
; CHECK-NEXT: Offset:
|
|
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: Value: 24
|
|
|
|
; CHECK-NEXT: Content: '00000000'
|
|
|
|
; CHECK-NEXT: - SectionOffset: 54
|
|
|
|
; CHECK-NEXT: MemoryIndex: 0
|
|
|
|
; CHECK-NEXT: Offset:
|
|
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
|
|
|
; CHECK-NEXT: Value: 28
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: Content: '616263'
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: CUSTOM
|
|
|
|
; CHECK-NEXT: Name: linking
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: DataSize: 31
|
2018-01-19 07:40:49 +08:00
|
|
|
; CHECK-NEXT: SymbolInfo:
|
2018-01-20 05:49:41 +08:00
|
|
|
; CHECK-NEXT: - Name: bar_import
|
|
|
|
; CHECK-NEXT: Flags: [ BINDING_WEAK ]
|
2018-01-19 07:40:49 +08:00
|
|
|
; CHECK-NEXT: - Name: hello
|
|
|
|
; CHECK-NEXT: Flags: [ VISIBILITY_HIDDEN ]
|
|
|
|
; CHECK-NEXT: - Name: my_func
|
|
|
|
; CHECK-NEXT: Flags: [ VISIBILITY_HIDDEN ]
|
|
|
|
; CHECK-NEXT: - Name: func_comdat
|
|
|
|
; CHECK-NEXT: Flags: [ BINDING_WEAK ]
|
|
|
|
; CHECK-NEXT: - Name: data_comdat
|
|
|
|
; CHECK-NEXT: Flags: [ BINDING_WEAK ]
|
|
|
|
; CHECK-NEXT: - Name: func_addr1
|
|
|
|
; CHECK-NEXT: Flags: [ VISIBILITY_HIDDEN ]
|
|
|
|
; CHECK-NEXT: - Name: func_addr2
|
|
|
|
; CHECK-NEXT: Flags: [ VISIBILITY_HIDDEN ]
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: - Name: func_addr3
|
|
|
|
; CHECK-NEXT: Flags: [ VISIBILITY_HIDDEN ]
|
2018-01-19 07:40:49 +08:00
|
|
|
; CHECK-NEXT: - Name: data_addr1
|
|
|
|
; CHECK-NEXT: Flags: [ VISIBILITY_HIDDEN ]
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: SegmentInfo:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Index: 0
|
|
|
|
; CHECK-NEXT: Name: .rodata.hello_str
|
|
|
|
; CHECK-NEXT: Alignment: 1
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: Flags: [ ]
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Index: 1
|
|
|
|
; CHECK-NEXT: Name: .data.func_addr1
|
|
|
|
; CHECK-NEXT: Alignment: 4
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: Flags: [ ]
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Index: 2
|
|
|
|
; CHECK-NEXT: Name: .data.func_addr2
|
|
|
|
; CHECK-NEXT: Alignment: 4
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: Flags: [ ]
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Index: 3
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: Name: .data.func_addr3
|
|
|
|
; CHECK-NEXT: Alignment: 4
|
|
|
|
; CHECK-NEXT: Flags: [ ]
|
|
|
|
; CHECK-NEXT: - Index: 4
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Name: .data.data_addr1
|
|
|
|
; CHECK-NEXT: Alignment: 8
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: Flags: [ ]
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: - Index: 5
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: Name: .rodata.data_comdat
|
|
|
|
; CHECK-NEXT: Alignment: 1
|
|
|
|
; CHECK-NEXT: Flags: [ ]
|
|
|
|
; CHECK-NEXT: Comdats:
|
|
|
|
; CHECK-NEXT: - Name: func_comdat
|
|
|
|
; CHECK-NEXT: Entries:
|
|
|
|
; CHECK-NEXT: - Kind: FUNCTION
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: Index: 5
|
2018-01-13 06:25:17 +08:00
|
|
|
; CHECK-NEXT: - Kind: DATA
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: Index: 5
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: CUSTOM
|
|
|
|
; CHECK-NEXT: Name: name
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: FunctionNames:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Index: 0
|
|
|
|
; CHECK-NEXT: Name: puts
|
|
|
|
; CHECK-NEXT: - Index: 1
|
|
|
|
; CHECK-NEXT: Name: foo_import
|
|
|
|
; CHECK-NEXT: - Index: 2
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: Name: bar_import
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Index: 3
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: Name: hello
|
2018-01-18 04:19:04 +08:00
|
|
|
; CHECK-NEXT: - Index: 4
|
2018-01-20 04:56:20 +08:00
|
|
|
; CHECK-NEXT: Name: my_func
|
|
|
|
; CHECK-NEXT: - Index: 5
|
2018-01-18 04:19:04 +08:00
|
|
|
; CHECK-NEXT: Name: func_comdat
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: ...
|