Changes to llvm-mc to move common logic to separate function.
Related clang patch: https://reviews.llvm.org/D26213
Differential D26214
[llvm] Implement support for -defsym assembler option mgrang on Nov 1 2016, 2:05 PM. Authored by
Details Changes to llvm-mc to move common logic to separate function. Related clang patch: https://reviews.llvm.org/D26213
Diff Detail
Event TimelineComment Actions LGTM after changing to a forward declaration.
Comment Actions Replaced inclusion of MCAsmParser.h in MCContext.h with forward declaration of "class MCAsmParser". Comment Actions Minor fix:
Comment Actions Reviewers, Thanks,
Comment Actions All the functionality tests need to be here. There are none. In the Clang change, you need to make sure that the information is passed down, via target-features, -Wa and a dump of the values. Here, you need to create tests that make use of those options (remember, clang is not always available when you build LLVM, so the test can't rely on that). Comment Actions @rengolin The -defsym option is already handled by llvm-mc (see http://llvm.org/viewvc/llvm-project?view=revision&revision=239240). This patch already added llvm-mc tests for defsym. My patch makes the assembler (cc1as) recognize this option. Hence I put the assembly checks in the clang tests. Comment Actions Sorry, fell out of my radar. I really can't see how the tests would be moved in here. LGTM.
|
The error checking shouldn't be in the setter function, but rather in the caller.