[llvm-bugs] [Bug 39377] New: MC: Function symbols are not marked as functions when parsing .s files
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Oct 22 01:48:07 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=39377
Bug ID: 39377
Summary: MC: Function symbols are not marked as functions when
parsing .s files
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: WebAssembly
Assignee: unassignedbugs at nondot.org
Reporter: sbc at chromium.org
CC: llvm-bugs at lists.llvm.org
This only matters when trying to output and object file.
For example if I add -filetype=obj to test/MC/WebAssembly/basic-assembly.s it
fails to write that output because it doesn't know that test0 is a function:
$ ../llvm-build/bin/llvm-mc -triple=wasm32-unknown-unknown
-mattr=+simd128,+nontrapping-fptoint test/MC/WebAssembly/basic-assembly.s
-filetype=obj
LLVM ERROR: data symbols must have a size set with .size: test0
Seems like there is a call to
`Symbol->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION)` missing somewhere perhaps?
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181022/40f2a472/attachment.html>
More information about the llvm-bugs
mailing list