aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Function.cpp
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-10-22 13:52:47 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-10-22 13:52:47 +0000
commitac0ec4795753caa8d2b5b8186a05d700998688ae (patch)
tree3b95bc51abac97d73988e222e94d4fdb337329c5 /lib/VMCore/Function.cpp
parentc023be29a4efbcea096427029a610c12e6c2b2ac (diff)
downloadexternal_llvm-ac0ec4795753caa8d2b5b8186a05d700998688ae.zip
external_llvm-ac0ec4795753caa8d2b5b8186a05d700998688ae.tar.gz
external_llvm-ac0ec4795753caa8d2b5b8186a05d700998688ae.tar.bz2
Added MachineCodeForMethod object in class Method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@949 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r--lib/VMCore/Function.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp
index d3c1858..9cea29c 100644
--- a/lib/VMCore/Function.cpp
+++ b/lib/VMCore/Function.cpp
@@ -13,6 +13,7 @@
#include "llvm/GlobalVariable.h"
#include "llvm/BasicBlock.h"
#include "llvm/iOther.h"
+#include "llvm/CodeGen/MachineInstr.h"
//===----------------------------------------------------------------------===//
// Method Implementation
@@ -27,7 +28,8 @@ template class ValueHolder<BasicBlock , Method, Method>;
Method::Method(const MethodType *Ty, const string &name)
: GlobalValue(PointerType::get(Ty), Value::MethodVal, name),
- SymTabValue(this), BasicBlocks(this), ArgumentList(this, this) {
+ SymTabValue(this), BasicBlocks(this), ArgumentList(this, this),
+ machineCode(new MachineCodeForMethod(this)) {
assert(::isa<MethodType>(Ty) && "Method signature must be of method type!");
}