diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2010-11-18 23:25:52 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2010-11-18 23:25:52 +0000 |
commit | 14ee344944cad9a61ff15e113c27df093d851ff1 (patch) | |
tree | f6888cee9de9a226327cf8a1952493116cd282fb /llvm/lib/Target/XCore/XCoreFrameInfo.cpp | |
parent | a391c97bd0032c0b5af03cde95f7c40683c02be8 (diff) | |
download | bcm5719-llvm-14ee344944cad9a61ff15e113c27df093d851ff1.tar.gz bcm5719-llvm-14ee344944cad9a61ff15e113c27df093d851ff1.zip |
Move getInitialFrameState() to TargetFrameInfo
llvm-svn: 119754
Diffstat (limited to 'llvm/lib/Target/XCore/XCoreFrameInfo.cpp')
-rw-r--r-- | llvm/lib/Target/XCore/XCoreFrameInfo.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/XCore/XCoreFrameInfo.cpp b/llvm/lib/Target/XCore/XCoreFrameInfo.cpp index ae86c954cd0..5359abb98c9 100644 --- a/llvm/lib/Target/XCore/XCoreFrameInfo.cpp +++ b/llvm/lib/Target/XCore/XCoreFrameInfo.cpp @@ -263,3 +263,11 @@ void XCoreFrameInfo::emitEpilogue(MachineFunction &MF, } } } + +void XCoreFrameInfo::getInitialFrameState(std::vector<MachineMove> &Moves) + const { + // Initial state of the frame pointer is SP. + MachineLocation Dst(MachineLocation::VirtualFP); + MachineLocation Src(XCore::SP, 0); + Moves.push_back(MachineMove(0, Dst, Src)); +} |