diff options
Diffstat (limited to 'include/llvm/CodeGen/MachineFrameInfo.h')
-rw-r--r-- | include/llvm/CodeGen/MachineFrameInfo.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h index 6d640a6b5a..45a24cc70b 100644 --- a/include/llvm/CodeGen/MachineFrameInfo.h +++ b/include/llvm/CodeGen/MachineFrameInfo.h @@ -28,8 +28,12 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_CODEGEN_FUNCTIONFRAMEINFO_H -#define LLVM_CODEGEN_FUNCTIONFRAMEINFO_H +#ifndef LLVM_CODEGEN_MACHINEFRAMEINFO_H +#define LLVM_CODEGEN_MACHINEFRAMEINFO_H + +class TargetData; +class TargetRegisterClass; +#include <vector> class MachineFrameInfo { @@ -181,6 +185,12 @@ public: return Objects.size()-NumFixedObjects-1; } + /// CreateStackObject - Create a stack object for a value of the specified + /// LLVM type or register class. + /// + int CreateStackObject(const Type *Ty, const TargetData &TD); + int CreateStackObject(const TargetRegisterClass *RC); + /// CreateVariableSizedObject - Notify the MachineFrameInfo object that a /// variable sized object has been created. This must be created whenever a /// variable sized object is created, whether or not the index returned is |