mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 03:32:10 +00:00
Rename Remember and Restore to RememberState and RestoreState for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147354 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1604ccfc01
commit
c25680f728
@ -271,7 +271,7 @@ namespace llvm {
|
|||||||
|
|
||||||
class MCCFIInstruction {
|
class MCCFIInstruction {
|
||||||
public:
|
public:
|
||||||
enum OpType { SameValue, Remember, Restore, Move, RelMove, Escape };
|
enum OpType { SameValue, RememberState, RestoreState, Move, RelMove, Escape };
|
||||||
private:
|
private:
|
||||||
OpType Operation;
|
OpType Operation;
|
||||||
MCSymbol *Label;
|
MCSymbol *Label;
|
||||||
@ -282,7 +282,7 @@ namespace llvm {
|
|||||||
public:
|
public:
|
||||||
MCCFIInstruction(OpType Op, MCSymbol *L)
|
MCCFIInstruction(OpType Op, MCSymbol *L)
|
||||||
: Operation(Op), Label(L) {
|
: Operation(Op), Label(L) {
|
||||||
assert(Op == Remember || Op == Restore);
|
assert(Op == RememberState || Op == RestoreState);
|
||||||
}
|
}
|
||||||
MCCFIInstruction(OpType Op, MCSymbol *L, unsigned Register)
|
MCCFIInstruction(OpType Op, MCSymbol *L, unsigned Register)
|
||||||
: Operation(Op), Label(L), Destination(Register) {
|
: Operation(Op), Label(L), Destination(Register) {
|
||||||
|
@ -971,11 +971,11 @@ void FrameEmitterImpl::EmitCFIInstruction(MCStreamer &Streamer,
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
case MCCFIInstruction::Remember:
|
case MCCFIInstruction::RememberState:
|
||||||
if (VerboseAsm) Streamer.AddComment("DW_CFA_remember_state");
|
if (VerboseAsm) Streamer.AddComment("DW_CFA_remember_state");
|
||||||
Streamer.EmitIntValue(dwarf::DW_CFA_remember_state, 1);
|
Streamer.EmitIntValue(dwarf::DW_CFA_remember_state, 1);
|
||||||
return;
|
return;
|
||||||
case MCCFIInstruction::Restore:
|
case MCCFIInstruction::RestoreState:
|
||||||
if (VerboseAsm) Streamer.AddComment("DW_CFA_restore_state");
|
if (VerboseAsm) Streamer.AddComment("DW_CFA_restore_state");
|
||||||
Streamer.EmitIntValue(dwarf::DW_CFA_restore_state, 1);
|
Streamer.EmitIntValue(dwarf::DW_CFA_restore_state, 1);
|
||||||
return;
|
return;
|
||||||
|
@ -385,7 +385,7 @@ void MCStreamer::EmitCFIRememberState() {
|
|||||||
MCDwarfFrameInfo *CurFrame = getCurrentFrameInfo();
|
MCDwarfFrameInfo *CurFrame = getCurrentFrameInfo();
|
||||||
MCSymbol *Label = getContext().CreateTempSymbol();
|
MCSymbol *Label = getContext().CreateTempSymbol();
|
||||||
EmitLabel(Label);
|
EmitLabel(Label);
|
||||||
MCCFIInstruction Instruction(MCCFIInstruction::Remember, Label);
|
MCCFIInstruction Instruction(MCCFIInstruction::RememberState, Label);
|
||||||
CurFrame->Instructions.push_back(Instruction);
|
CurFrame->Instructions.push_back(Instruction);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -395,7 +395,7 @@ void MCStreamer::EmitCFIRestoreState() {
|
|||||||
MCDwarfFrameInfo *CurFrame = getCurrentFrameInfo();
|
MCDwarfFrameInfo *CurFrame = getCurrentFrameInfo();
|
||||||
MCSymbol *Label = getContext().CreateTempSymbol();
|
MCSymbol *Label = getContext().CreateTempSymbol();
|
||||||
EmitLabel(Label);
|
EmitLabel(Label);
|
||||||
MCCFIInstruction Instruction(MCCFIInstruction::Restore, Label);
|
MCCFIInstruction Instruction(MCCFIInstruction::RestoreState, Label);
|
||||||
CurFrame->Instructions.push_back(Instruction);
|
CurFrame->Instructions.push_back(Instruction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user