Skip to content
Snippets Groups Projects
Commit 1efa7d68 authored by Simon Schuster's avatar Simon Schuster
Browse files

Bugfix: Ignore CFI_INSTRUCTIONs in the PML-Export

parent 91d30783
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,12 @@ namespace llvm {
virtual bool doExportInstruction(const MachineInstr *Ins) {
return Ins->getOpcode() != ARM::PSEUDO_LOOPBOUND
&& Ins->getOpcode() != ARM::IMPLICIT_DEF
&& Ins->getOpcode() != ARM::PSEUDO_PLATINA;
&& Ins->getOpcode() != ARM::PSEUDO_PLATINA
&& Ins->getOpcode() != TargetOpcode::CFI_INSTRUCTION;
// As of 20.04.2018: For obscure reasons, the final
// RET instructions are Pseudo instructions. Therefore
// the following code is dangerous.
// !(Ins->isPseudo() && !Ins->isInlineAsm())
}
virtual void serialize(MachineFunction &MF);
......@@ -150,7 +155,6 @@ namespace llvm {
IsBundled = false;
}
if (Ins->getOpcode() == ARM::PSEUDO_PLATINA) {
assert(Ins->getNumOperands() == 2
&& "PSEUDO_PLATINA takes a type and an expression operand");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment