From: Vikram S. Adve Date: Mon, 22 Oct 2001 13:52:47 +0000 (+0000) Subject: Added MachineCodeForMethod object in class Method. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ac0ec4795753caa8d2b5b8186a05d700998688ae;p=oota-llvm.git Added MachineCodeForMethod object in class Method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@949 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index d3c18588cda..9cea29cf227 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; 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(Ty) && "Method signature must be of method type!"); }