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/MachineInstr.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/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 7d04e6b4d77..5f3989bbe7e 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -1292,7 +1292,7 @@ void MachineInstr::print(raw_ostream &OS, ModuleSlotTracker &MST, if (getFlag(MachineInstr::FrameSetup)) OS << "frame-setup "; - else if (getFlag(MachineInstr::FrameDestroy)) + if (getFlag(MachineInstr::FrameDestroy)) OS << "frame-destroy "; // Print the opcode name. |