aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/XCore/XCoreFrameInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/XCore/XCoreFrameInfo.h')
-rw-r--r--lib/Target/XCore/XCoreFrameInfo.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/Target/XCore/XCoreFrameInfo.h b/lib/Target/XCore/XCoreFrameInfo.h
index 2c67577..47a652d 100644
--- a/lib/Target/XCore/XCoreFrameInfo.h
+++ b/lib/Target/XCore/XCoreFrameInfo.h
@@ -19,10 +19,17 @@
#include "llvm/Target/TargetMachine.h"
namespace llvm {
- class XCoreFrameInfo: public TargetFrameInfo {
+ class XCoreSubtarget;
+ class XCoreFrameInfo: public TargetFrameInfo {
+ const XCoreSubtarget &STI;
public:
- XCoreFrameInfo(const TargetMachine &tm);
+ XCoreFrameInfo(const XCoreSubtarget &STI);
+
+ /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
+ /// the function.
+ void emitPrologue(MachineFunction &MF) const;
+ void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
//! Stack slot size (4 bytes)
static int stackSlotSize() {