Implement .cfi_undefined. Based on a patch from PaX team, updated by

Roman Divacky. I just added the testcase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168520 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2012-11-23 16:59:41 +00:00
parent 834518f1ce
commit c8fec7e21f
7 changed files with 91 additions and 2 deletions

View File

@@ -267,7 +267,7 @@ namespace llvm {
class MCCFIInstruction {
public:
enum OpType { SameValue, RememberState, RestoreState, Move, RelMove, Escape,
Restore};
Restore, Undefined };
private:
OpType Operation;
MCSymbol *Label;
@@ -282,7 +282,7 @@ namespace llvm {
}
MCCFIInstruction(OpType Op, MCSymbol *L, unsigned Register)
: Operation(Op), Label(L), Destination(Register) {
assert(Op == SameValue || Op == Restore);
assert(Op == SameValue || Op == Restore || Op == Undefined);
}
MCCFIInstruction(MCSymbol *L, const MachineLocation &D,
const MachineLocation &S)