diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-10-22 13:52:47 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-10-22 13:52:47 +0000 |
commit | 4e594bebba51f447daa0dcc7ecab86c1befd40ca (patch) | |
tree | 42aad70bdebb1f2c34ac5edfd607afdb722fa15a /llvm/lib/VMCore/Function.cpp | |
parent | 901da32e64365fa585b2c0c1651b80e5c15fb0ab (diff) | |
download | bcm5719-llvm-4e594bebba51f447daa0dcc7ecab86c1befd40ca.tar.gz bcm5719-llvm-4e594bebba51f447daa0dcc7ecab86c1befd40ca.zip |
Added MachineCodeForMethod object in class Method.
llvm-svn: 949
Diffstat (limited to 'llvm/lib/VMCore/Function.cpp')
-rw-r--r-- | llvm/lib/VMCore/Function.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp index d3c18588cda..9cea29cf227 100644 --- a/llvm/lib/VMCore/Function.cpp +++ b/llvm/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!"); } |