Implement new constructor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15633 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Misha Brukman 2004-08-10 23:10:25 +00:00
parent 80b90cd191
commit 167deff938

View File

@ -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) {