From 167deff938cfa3e895e771d3f7585dd3de5af273 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Tue, 10 Aug 2004 23:10:25 +0000 Subject: [PATCH] Implement new constructor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15633 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/TargetMachine.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp index 3022b5225e0..ee8ef2e5ed6 100644 --- a/lib/Target/TargetMachine.cpp +++ b/lib/Target/TargetMachine.cpp @@ -52,6 +52,13 @@ TargetMachine::TargetMachine(const std::string &name, IntrinsicLowering *il, IntAl, ShortAl, ByteAl, BoolAl) { IL = il ? il : new DefaultIntrinsicLowering(); } + +TargetMachine::TargetMachine(const std::string &name, IntrinsicLowering *il, + const TargetData &TD) + : Name(name), DataLayout(TD) { + IL = il ? il : new DefaultIntrinsicLowering(); +} + TargetMachine::TargetMachine(const std::string &name, IntrinsicLowering *il, const Module &M) : Name(name), DataLayout(name, &M) {