wasm32-unknown-unknown-elf has MCSymbols that are not MCSymbolWasms, so
we need a non-asserting cast here.
Details
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 14874 Build 14874: arc lint + arc unit
Event Timeline
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp | ||
---|---|---|
94 | Does emitImportModule do anything for ELF? I assume not, maybe it makes more sense to just explicitly condition this whole thing on BinFormatWasm and that way when we remove ELF it will be easy to find all the mentions of BinFormatELF or BinFormatWasm in the backend and remove them. |
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp | ||
---|---|---|
94 | Yeah it just asserts if we actually do add a "wasm-import-module" attribute. This is less explicitly unsupported, but more refactorable in future. |
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp | ||
---|---|---|
94 | Yeah my hope is that the "future" for ELF is short and does not include this attribute :) |
Does emitImportModule do anything for ELF? I assume not, maybe it makes more sense to just explicitly condition this whole thing on BinFormatWasm and that way when we remove ELF it will be easy to find all the mentions of BinFormatELF or BinFormatWasm in the backend and remove them.