mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 17:32:36 +00:00
Rename Remember and Restore to RememberState and RestoreState for consistency.
llvm-svn: 147354
This commit is contained in:
parent
97e84c23a1
commit
bc8c3d0ca0
@ -271,7 +271,7 @@ namespace llvm {
|
||||
|
||||
class MCCFIInstruction {
|
||||
public:
|
||||
enum OpType { SameValue, Remember, Restore, Move, RelMove, Escape };
|
||||
enum OpType { SameValue, RememberState, RestoreState, Move, RelMove, Escape };
|
||||
private:
|
||||
OpType Operation;
|
||||
MCSymbol *Label;
|
||||
@ -282,7 +282,7 @@ namespace llvm {
|
||||
public:
|
||||
MCCFIInstruction(OpType Op, MCSymbol *L)
|
||||
: Operation(Op), Label(L) {
|
||||
assert(Op == Remember || Op == Restore);
|
||||
assert(Op == RememberState || Op == RestoreState);
|
||||
}
|
||||
MCCFIInstruction(OpType Op, MCSymbol *L, unsigned Register)
|
||||
: Operation(Op), Label(L), Destination(Register) {
|
||||
|
@ -971,11 +971,11 @@ void FrameEmitterImpl::EmitCFIInstruction(MCStreamer &Streamer,
|
||||
}
|
||||
return;
|
||||
}
|
||||
case MCCFIInstruction::Remember:
|
||||
case MCCFIInstruction::RememberState:
|
||||
if (VerboseAsm) Streamer.AddComment("DW_CFA_remember_state");
|
||||
Streamer.EmitIntValue(dwarf::DW_CFA_remember_state, 1);
|
||||
return;
|
||||
case MCCFIInstruction::Restore:
|
||||
case MCCFIInstruction::RestoreState:
|
||||
if (VerboseAsm) Streamer.AddComment("DW_CFA_restore_state");
|
||||
Streamer.EmitIntValue(dwarf::DW_CFA_restore_state, 1);
|
||||
return;
|
||||
|
@ -385,7 +385,7 @@ void MCStreamer::EmitCFIRememberState() {
|
||||
MCDwarfFrameInfo *CurFrame = getCurrentFrameInfo();
|
||||
MCSymbol *Label = getContext().CreateTempSymbol();
|
||||
EmitLabel(Label);
|
||||
MCCFIInstruction Instruction(MCCFIInstruction::Remember, Label);
|
||||
MCCFIInstruction Instruction(MCCFIInstruction::RememberState, Label);
|
||||
CurFrame->Instructions.push_back(Instruction);
|
||||
}
|
||||
|
||||
@ -395,7 +395,7 @@ void MCStreamer::EmitCFIRestoreState() {
|
||||
MCDwarfFrameInfo *CurFrame = getCurrentFrameInfo();
|
||||
MCSymbol *Label = getContext().CreateTempSymbol();
|
||||
EmitLabel(Label);
|
||||
MCCFIInstruction Instruction(MCCFIInstruction::Restore, Label);
|
||||
MCCFIInstruction Instruction(MCCFIInstruction::RestoreState, Label);
|
||||
CurFrame->Instructions.push_back(Instruction);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user