diff options
| author | Oliver Stannard <oliver.stannard@arm.com> | 2017-10-11 09:17:43 +0000 |
|---|---|---|
| committer | Oliver Stannard <oliver.stannard@arm.com> | 2017-10-11 09:17:43 +0000 |
| commit | 4191b9eaeacd27c294e0a1e905aec38fd8584e87 (patch) | |
| tree | 083d33d8a90a7a014e6d4041676440ea87137e41 /llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp | |
| parent | dbd7c338a01d51bb83ecc14edbe566cc868e8c2c (diff) | |
| download | bcm5719-llvm-4191b9eaeacd27c294e0a1e905aec38fd8584e87.tar.gz bcm5719-llvm-4191b9eaeacd27c294e0a1e905aec38fd8584e87.zip | |
[Asm] Add debug tracing in table-generated assembly matcher
This adds debug tracing to the table-generated assembly instruction matcher,
enabled by the -debug-only=asm-matcher option.
The changes in the target AsmParsers are to add an MCInstrInfo reference under
a consistent name, so that we can use it from table-generated code. This was
already being used this way for targets that use deprecation warnings, but 5
targets did not have it, and Hexagon had it under a different name to the other
backends.
llvm-svn: 315445
Diffstat (limited to 'llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp')
| -rw-r--r-- | llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp b/llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp index 5004736365c..2e1adcc6a4f 100644 --- a/llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp +++ b/llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp @@ -83,7 +83,7 @@ class AVRAsmParser : public MCTargetAsmParser { public: AVRAsmParser(const MCSubtargetInfo &STI, MCAsmParser &Parser, const MCInstrInfo &MII, const MCTargetOptions &Options) - : MCTargetAsmParser(Options, STI), STI(STI), Parser(Parser) { + : MCTargetAsmParser(Options, STI, MII), STI(STI), Parser(Parser) { MCAsmParserExtension::Initialize(Parser); MRI = getContext().getRegisterInfo(); |

