diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-01-09 11:33:22 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-01-09 11:33:22 +0000 |
commit | dbf2c48fc7ed8ce561b2096916b1f5fa539c61d0 (patch) | |
tree | c9a2697e78005f6272dcd164f445ca6925937759 /llvm/lib/CodeGen/MIRParser/MIParser.cpp | |
parent | 7868e740333984bd2e348d9e45c61f8ff57696a9 (diff) | |
download | bcm5719-llvm-dbf2c48fc7ed8ce561b2096916b1f5fa539c61d0.tar.gz bcm5719-llvm-dbf2c48fc7ed8ce561b2096916b1f5fa539c61d0.zip |
[MIR] Add support for the frame-destroy MachineInstr flag
We are printing / parsing the `frame-setup` MachineInstr flag but not
the `frame-destroy` one.
Differential Revision: https://reviews.llvm.org/D41509
llvm-svn: 322071
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MIParser.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MIRParser/MIParser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIParser.cpp b/llvm/lib/CodeGen/MIRParser/MIParser.cpp index 1a78ae3aad0..4fa84c7bbd9 100644 --- a/llvm/lib/CodeGen/MIRParser/MIParser.cpp +++ b/llvm/lib/CodeGen/MIRParser/MIParser.cpp @@ -925,6 +925,9 @@ bool MIParser::parseInstruction(unsigned &OpCode, unsigned &Flags) { if (Token.is(MIToken::kw_frame_setup)) { Flags |= MachineInstr::FrameSetup; lex(); + } else if (Token.is(MIToken::kw_frame_destroy)) { + Flags |= MachineInstr::FrameDestroy; + lex(); } if (Token.isNot(MIToken::Identifier)) return error("expected a machine instruction"); |