forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WebAssembly] Add support for local symbol bindings
Differential Revision: https://reviews.llvm.org/D38096 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313817 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
9 changed files
with
81 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
; RUN: llc -filetype=obj -mtriple=wasm32-unknown-unknown-wasm -o %t.o %s | ||
; RUN: llvm-nm %t.o | FileCheck %s | ||
|
||
@foo = internal global i32 1, align 4 | ||
@bar = global i32 1, align 4 | ||
|
||
; CHECK: 00000004 D bar | ||
; CHECK: 00000000 d foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
RUN: llvm-objdump -t %p/../Inputs/trivial.obj.wasm | FileCheck %s | ||
|
||
CHECK: SYMBOL TABLE: | ||
CHECK-NEXT: 00000000 l F name puts | ||
CHECK-NEXT: 00000001 l F name SomeOtherFunction | ||
CHECK-NEXT: 00000002 l F name main | ||
CHECK-NEXT: 00000000 l F IMPORT puts | ||
CHECK-NEXT: 00000000 l F IMPORT SomeOtherFunction | ||
CHECK-NEXT: 00000000 g F name puts | ||
CHECK-NEXT: 00000001 g F name SomeOtherFunction | ||
CHECK-NEXT: 00000002 g F name main | ||
CHECK-NEXT: 00000000 g F IMPORT puts | ||
CHECK-NEXT: 00000000 g F IMPORT SomeOtherFunction | ||
CHECK-NEXT: 00000002 g F EXPORT main | ||
CHECK-NEXT: 00000010 g EXPORT var | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ set(LLVM_LINK_COMPONENTS | |
AllTargetsDisassemblers | ||
AllTargetsInfos | ||
MC | ||
Object | ||
MCParser | ||
Object | ||
Support | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters