Added MachineCodeForMethod object in class Method.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Mon, 22 Oct 2001 13:52:47 +0000 (13:52 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Mon, 22 Oct 2001 13:52:47 +0000 (13:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@949 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Function.cpp

index d3c18588cda353d01a6be644fc1e8e430719b66a..9cea29cf227e1c98648adb230791e3a4152d0b1b 100644 (file)
@@ -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!");
 }