aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineFunction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-28 01:27:51 +0000
committerChris Lattner <sabre@nondot.org>2002-10-28 01:27:51 +0000
commit9c6342d0cc919711ea1024b98b1b387573995922 (patch)
tree0d3bfbc1f56cc5046ebc175b2a7435d0e29279e2 /include/llvm/CodeGen/MachineFunction.h
parenta4f808b54eb68b636a139d6ddf9b99671e6818ea (diff)
Add note about state that should be removed when time permits
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4315 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineFunction.h')
-rw-r--r--include/llvm/CodeGen/MachineFunction.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h
index 46f0e54c95..764cbab8f0 100644
--- a/include/llvm/CodeGen/MachineFunction.h
+++ b/include/llvm/CodeGen/MachineFunction.h
@@ -1,4 +1,4 @@
-//===-- llvm/CodeGen/MachineFunction.h ---------------------------*- C++ -*--=//
+//===-- llvm/CodeGen/MachineFunction.h --------------------------*- C++ -*-===//
//
// Collect native machine code information for a method. This allows
// target-specific information about the generated code to be stored with each
@@ -27,6 +27,8 @@ class MachineFunction : private Annotation {
hash_set<const Constant*> constantsForConstPool;
hash_map<const Value*, int> offsets;
const Function* method;
+
+ // FIXME: State should be held elsewhere...
unsigned staticStackSize;
unsigned automaticVarsSize;
unsigned regSpillsSize;
@@ -39,8 +41,8 @@ class MachineFunction : private Annotation {
bool automaticVarsAreaFrozen;
public:
- /*ctor*/ MachineFunction(const Function* function,
- const TargetMachine& target);
+ MachineFunction(const Function* function,
+ const TargetMachine& target);
// The next two methods are used to construct and to retrieve
// the MachineFunction object for the given method.
@@ -54,6 +56,14 @@ public:
static void destruct(const Function *F);
static MachineFunction& get(const Function* function);
+
+
+ //===--------------------------------------------------------------------===//
+ //
+ // FIXME: Most of the following state should be moved out to passes that use
+ // it, instead of being put here.
+ //
+
//
// Accessors for global information about generated code for a method.
//