[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineFunction.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Oct 27 23:59:01 PST 2002
Changes in directory llvm/include/llvm/CodeGen:
MachineFunction.h updated: 1.14 -> 1.15
---
Log message:
s/method/function
---
Diffs of the changes:
Index: llvm/include/llvm/CodeGen/MachineFunction.h
diff -u llvm/include/llvm/CodeGen/MachineFunction.h:1.14 llvm/include/llvm/CodeGen/MachineFunction.h:1.15
--- llvm/include/llvm/CodeGen/MachineFunction.h:1.14 Sun Oct 27 23:30:41 2002
+++ llvm/include/llvm/CodeGen/MachineFunction.h Sun Oct 27 23:58:42 2002
@@ -27,7 +27,8 @@
Pass *createMachineCodeDestructionPass();
class MachineFunction : private Annotation {
- const Function *method;
+ const Function *Fn;
+ const TargetMachine &Target;
// List of machine basic blocks in function
iplist<MachineBasicBlock> BasicBlocks;
@@ -47,8 +48,15 @@
bool automaticVarsAreaFrozen;
public:
- MachineFunction(const Function* function,
- const TargetMachine& target);
+ MachineFunction(const Function *Fn, const TargetMachine& target);
+
+ /// getFunction - Return the LLVM function that this machine code represents
+ ///
+ const Function *getFunction() const { return Fn; }
+
+ /// getTarget - Return the target machine this machine code is compiled with
+ ///
+ const TargetMachine &getTarget() const { return Target; }
// The next two methods are used to construct and to retrieve
// the MachineFunction object for the given method.
@@ -57,8 +65,8 @@
// This should not be called before "construct()"
// for a given Method.
//
- static MachineFunction& construct(const Function *method,
- const TargetMachine &target);
+ static MachineFunction& construct(const Function *Fn,
+ const TargetMachine &target);
static void destruct(const Function *F);
static MachineFunction& get(const Function *F);
More information about the llvm-commits
mailing list