diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2004-03-11 23:52:03 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-03-11 23:52:03 +0000 |
commit | 242e94ab268a6f614e0820540bda846a4b3306a9 (patch) | |
tree | 0f41716ce6b7d0b797e4beef2742986c2c11bcf5 /include/llvm | |
parent | a7a805ef9833c0378bfeb0e2c5ffa69cbdace406 (diff) | |
download | external_llvm-242e94ab268a6f614e0820540bda846a4b3306a9.zip external_llvm-242e94ab268a6f614e0820540bda846a4b3306a9.tar.gz external_llvm-242e94ab268a6f614e0820540bda846a4b3306a9.tar.bz2 |
Move function implementations to a .cpp file, avoid #including <cstdlib> here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12296 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Target/TargetFrameInfo.h | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/include/llvm/Target/TargetFrameInfo.h b/include/llvm/Target/TargetFrameInfo.h index 3bf1a00..bdcf793 100644 --- a/include/llvm/Target/TargetFrameInfo.h +++ b/include/llvm/Target/TargetFrameInfo.h @@ -14,8 +14,6 @@ #ifndef LLVM_TARGET_TARGETFRAMEINFO_H #define LLVM_TARGET_TARGETFRAMEINFO_H -#include <cstdlib> - namespace llvm { class MachineFunction; @@ -56,15 +54,15 @@ public: // are Sparc specific. //===--------------------------------------------------------------------===// - virtual int getStackFrameSizeAlignment () const { abort(); } - virtual int getMinStackFrameSize () const { abort(); } - virtual int getNumFixedOutgoingArgs () const { abort(); } - virtual int getSizeOfEachArgOnStack () const { abort(); } - virtual bool argsOnStackHaveFixedSize () const { abort(); } + virtual int getStackFrameSizeAlignment () const; + virtual int getMinStackFrameSize () const; + virtual int getNumFixedOutgoingArgs () const; + virtual int getSizeOfEachArgOnStack () const; + virtual bool argsOnStackHaveFixedSize () const; // This method adjusts a stack offset to meet alignment rules of target. virtual int adjustAlignment(int unalignedOffset, bool growUp, - unsigned align) const { abort(); } + unsigned align) const; // These methods compute offsets using the frame contents for a particular // function. The frame contents are obtained from the MachineFunction object @@ -72,35 +70,35 @@ public: // machine-specific subclass. // virtual int getIncomingArgOffset (MachineFunction& mcInfo, - unsigned argNum)const{abort();} + unsigned argNum) const; virtual int getOutgoingArgOffset (MachineFunction& mcInfo, - unsigned argNum)const{abort();} + unsigned argNum) const; virtual int getFirstIncomingArgOffset (MachineFunction& mcInfo, - bool& growUp) const { abort();} + bool& growUp) const; virtual int getFirstOutgoingArgOffset (MachineFunction& mcInfo, - bool& growUp) const {abort();} + bool& growUp) const; virtual int getFirstOptionalOutgoingArgOffset (MachineFunction&, - bool& growUp) const {abort();} + bool& growUp) const; virtual int getFirstAutomaticVarOffset (MachineFunction& mcInfo, - bool& growUp) const {abort();} + bool& growUp) const; virtual int getRegSpillAreaOffset (MachineFunction& mcInfo, - bool& growUp) const {abort();} + bool& growUp) const; virtual int getTmpAreaOffset (MachineFunction& mcInfo, - bool& growUp) const {abort();} + bool& growUp) const; virtual int getDynamicAreaOffset (MachineFunction& mcInfo, - bool& growUp) const {abort();} + bool& growUp) const; // // These methods specify the base register used for each stack area // (generally FP or SP) // - virtual int getIncomingArgBaseRegNum() const { abort(); } - virtual int getOutgoingArgBaseRegNum() const { abort(); } - virtual int getOptionalOutgoingArgBaseRegNum() const { abort(); } - virtual int getAutomaticVarBaseRegNum() const { abort(); } - virtual int getRegSpillAreaBaseRegNum() const { abort(); } - virtual int getDynamicAreaBaseRegNum() const { abort(); } + virtual int getIncomingArgBaseRegNum() const; + virtual int getOutgoingArgBaseRegNum() const; + virtual int getOptionalOutgoingArgBaseRegNum() const; + virtual int getAutomaticVarBaseRegNum() const; + virtual int getRegSpillAreaBaseRegNum() const; + virtual int getDynamicAreaBaseRegNum() const; }; } // End llvm namespace |