diff options
author | James Molloy <james.molloy@arm.com> | 2011-09-01 18:02:14 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2011-09-01 18:02:14 +0000 |
commit | c047dcade506a5acaccb1548cb83a3f85f52d71d (patch) | |
tree | 1f78524379306a8706605360f894bbcdbace4bf2 /utils/TableGen/DisassemblerEmitter.cpp | |
parent | 7f17b5a483ea358f2b9e3958f16cf34d75d5b4da (diff) |
Fix up r137380 based on post-commit review by Jim Grosbach.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DisassemblerEmitter.cpp')
-rw-r--r-- | utils/TableGen/DisassemblerEmitter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/DisassemblerEmitter.cpp b/utils/TableGen/DisassemblerEmitter.cpp index ccf644b00e..614ec3630f 100644 --- a/utils/TableGen/DisassemblerEmitter.cpp +++ b/utils/TableGen/DisassemblerEmitter.cpp @@ -132,9 +132,9 @@ void DisassemblerEmitter::run(raw_ostream &OS) { if (Target.getName() == "ARM" || Target.getName() == "Thumb") { FixedLenDecoderEmitter(Records, - "CHECK(S, ", ");", - "S", "Fail", - "DecodeStatus S = Success;\n(void)S;").run(OS); + "if (!Check(S, ", ")) return MCDisassembler::Fail;", + "S", "MCDisassembler::Fail", + "MCDisassembler::DecodeStatus S = MCDisassembler::Success;\n(void)S;").run(OS); return; } |