The llvm-dwp tool hard-codes the target triple to x86. Instead, add a command
line option for overriding the default triple to support alternative targets
such as WebAssembly as well.
Details
Details
- Reviewers
dblaikie - Commits
- rGda489946a9d8: [llvm-dwp] Automatically set the target triple
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Could the target triple be identified from one of the input files instead? (in any case, this'll need test coverage)
Comment Actions
Code change looks good - test might be able to be tweaked a bit before committing.
llvm/test/tools/llvm-dwp/WebAssembly/simple.test | ||
---|---|---|
1 ↗ | (On Diff #316390) | Could the wasm.dwo file be written in assembly (that's more the style used these days, compared to when I wrote the original dwp tests) and assembled with llvm-mc? (this .test file could be the assembly .s file instead - self-describing/standalone in one file rather than an opaque binary beside this .test file that doesn't describe its inputs) |