[PATCH] D63955: [WebAssembly] Allow @object in .type directives.
Wouter van Oortmerssen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 28 14:56:34 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL364688: [WebAssembly] Allow @object in .type directives. (authored by aardappel, committed by ).
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63955/new/
https://reviews.llvm.org/D63955
Files:
llvm/trunk/lib/MC/MCParser/WasmAsmParser.cpp
llvm/trunk/test/MC/WebAssembly/basic-assembly.s
Index: llvm/trunk/lib/MC/MCParser/WasmAsmParser.cpp
===================================================================
--- llvm/trunk/lib/MC/MCParser/WasmAsmParser.cpp
+++ llvm/trunk/lib/MC/MCParser/WasmAsmParser.cpp
@@ -187,6 +187,8 @@
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();
Index: llvm/trunk/test/MC/WebAssembly/basic-assembly.s
===================================================================
--- llvm/trunk/test/MC/WebAssembly/basic-assembly.s
+++ llvm/trunk/test/MC/WebAssembly/basic-assembly.s
@@ -91,6 +91,7 @@
.section .rodata..L.str,"",@
.hidden .L.str
+ .type .L.str, at object
.L.str:
.int8 'H'
.asciz "ello, World!"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63955.207152.patch
Type: text/x-patch
Size: 970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190628/a93895db/attachment.bin>
More information about the llvm-commits
mailing list