Related llvm patch: https://reviews.llvm.org/D27359
Details
Details
- Reviewers
rengolin grosbach compnerd t.p.northover echristo - Commits
- rG6d1d36c4b7c3: [clang] Fix D26214: Move error handling out of MC and to the callers.
rC288762: [clang] Fix D26214: Move error handling out of MC and to the callers.
rL288762: [clang] Fix D26214: Move error handling out of MC and to the callers.
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I think that the argument parsing should really be hoisted into the driver rather than pushed down into the assembler. The driver can parse and validate the options before passing them down, so when cc1as gets it, it will simply set the value.
The newly introduced diagnostics, especially right now, are not driver related. Nor are they common. I would say that we would need a DiagnosticAssemblerKind.td for these.
Comment Actions
Im not the biggest fan of this. However, having some validation is probably better than not. We can come up with a better way to address this in the future when needed I suppose.