diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-03-13 19:53:16 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-03-13 19:53:16 +0000 |
commit | 3abf05739f032fd03ed30d665aa5ecb7cb2c44f9 (patch) | |
tree | 8af919a4eb7a0a2abecb3a1cf92ab7675ff2adc3 /llvm/lib/CodeGen/MIRPrinter.cpp | |
parent | 27c1afbb0b4e08f045126d04f1b341418a873321 (diff) | |
download | bcm5719-llvm-3abf05739f032fd03ed30d665aa5ecb7cb2c44f9.tar.gz bcm5719-llvm-3abf05739f032fd03ed30d665aa5ecb7cb2c44f9.zip |
[MIR] Allow frame-setup and frame-destroy on the same instruction
Nothing prevents us from having both frame-setup and frame-destroy on
the same instruction.
When merging:
* frame-setup OPCODE1
* frame-destroy OPCODE2
into
* frame-setup frame-destroy OPCODE3
we want to be able to print and parse both flags.
llvm-svn: 327442
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MIRPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index 683ad6e479a..e2be2e989b6 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -672,7 +672,7 @@ void MIPrinter::print(const MachineInstr &MI) { OS << " = "; if (MI.getFlag(MachineInstr::FrameSetup)) OS << "frame-setup "; - else if (MI.getFlag(MachineInstr::FrameDestroy)) + if (MI.getFlag(MachineInstr::FrameDestroy)) OS << "frame-destroy "; OS << TII->getName(MI.getOpcode()); |