diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-10-22 13:58:08 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-10-22 13:58:08 +0000 |
commit | 0ac8f7ce5a1c3e21b518775f83ca5c14e56b9246 (patch) | |
tree | 2f900f003719f8c227e1b86a3e3e9f9b0ab542e8 /include | |
parent | 1876f92599b90f0a4b276aae413a1b965954174d (diff) | |
download | external_llvm-0ac8f7ce5a1c3e21b518775f83ca5c14e56b9246.zip external_llvm-0ac8f7ce5a1c3e21b518775f83ca5c14e56b9246.tar.gz external_llvm-0ac8f7ce5a1c3e21b518775f83ca5c14e56b9246.tar.bz2 |
Added object of class MachineCodeForMethod.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@953 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Function.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index 4267d32..3e07761 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -20,6 +20,7 @@ class BasicBlock; class MethodArgument; class MethodType; class Module; +class MachineCodeForMethod; class Method : public GlobalValue, public SymTabValue { public: @@ -35,9 +36,10 @@ public: private: // Important things that make up a method! - BasicBlocksType BasicBlocks; // The basic blocks - ArgumentListType ArgumentList; // The formal arguments - + BasicBlocksType BasicBlocks; // The basic blocks + ArgumentListType ArgumentList; // The formal arguments + MachineCodeForMethod* machineCode; // Access to the generated native code + friend class ValueHolder<Method, Module, Module>; void setParent(Module *parent); @@ -67,6 +69,11 @@ public: inline const BasicBlock *getEntryNode() const { return front(); } inline BasicBlock *getEntryNode() { return front(); } + inline const MachineCodeForMethod + &getMachineCode() const { return *machineCode;} + inline MachineCodeForMethod + &getMachineCode() { return *machineCode;} + //===--------------------------------------------------------------------===// // BasicBlock iterator forwarding functions // |