1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[WebAssembly] Allow @object in .type directives.

Reviewers: sbc100

Subscribers: dschuff, jgravelle-google, aheejin, sunfish, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D63955

llvm-svn: 364688
This commit is contained in:
Wouter van Oortmerssen 2019-06-28 21:53:11 +00:00
parent 3620c94af7
commit cc716d78a8
2 changed files with 3 additions and 0 deletions

View File

@ -187,6 +187,8 @@ public:
WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION);
else if (TypeName == "global")
WasmSym->setType(wasm::WASM_SYMBOL_TYPE_GLOBAL);
else if (TypeName == "object")
WasmSym->setType(wasm::WASM_SYMBOL_TYPE_DATA);
else
return error("Unknown WASM symbol type: ", Lexer->getTok());
Lex();

View File

@ -91,6 +91,7 @@ test0:
.section .rodata..L.str,"",@
.hidden .L.str
.type .L.str,@object
.L.str:
.int8 'H'
.asciz "ello, World!"