From 55f00fa00f30d7f47dd32cd9097d1880714b548f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 13 Jan 2003 00:15:24 +0000 Subject: [PATCH] * Add utility methods which make common cases easier llvm-svn: 5207 --- llvm/include/llvm/CodeGen/MachineFrameInfo.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/CodeGen/MachineFrameInfo.h b/llvm/include/llvm/CodeGen/MachineFrameInfo.h index 6d640a6b5a00..45a24cc70beb 100644 --- a/llvm/include/llvm/CodeGen/MachineFrameInfo.h +++ b/llvm/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 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