mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
No reason not to allow defining the CFA as a reg w/ offset zero.
llvm-svn: 131760
This commit is contained in:
parent
84f0431846
commit
909aff492f
@ -215,8 +215,6 @@ void AsmPrinter::EmitCFIFrameMove(const MachineMove &Move) const {
|
||||
|
||||
// If advancing cfa.
|
||||
if (Dst.isReg() && Dst.getReg() == MachineLocation::VirtualFP) {
|
||||
assert(!Src.isReg() && "Machine move not supported yet.");
|
||||
|
||||
if (Src.getReg() == MachineLocation::VirtualFP) {
|
||||
OutStreamer.EmitCFIDefCfaOffset(-Src.getOffset());
|
||||
} else {
|
||||
|
@ -539,8 +539,6 @@ void FrameEmitterImpl::EmitCFIInstruction(MCStreamer &Streamer,
|
||||
|
||||
// If advancing cfa.
|
||||
if (Dst.isReg() && Dst.getReg() == MachineLocation::VirtualFP) {
|
||||
assert(!Src.isReg() && "Machine move not supported yet.");
|
||||
|
||||
if (Src.getReg() == MachineLocation::VirtualFP) {
|
||||
Streamer.EmitIntValue(dwarf::DW_CFA_def_cfa_offset, 1);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user