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: unassignedb...@nondot.org
          Reporter: s...@chromium.org
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to