From 4e594bebba51f447daa0dcc7ecab86c1befd40ca Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Mon, 22 Oct 2001 13:52:47 +0000 Subject: [PATCH] Added MachineCodeForMethod object in class Method. llvm-svn: 949 --- llvm/lib/VMCore/Function.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp index d3c18588cda3..9cea29cf227e 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; 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!"); } -- GitLab