[llvm-commits] CVS: llvm/lib/Target/TargetMachine.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Mar 22 21:43:32 PST 2006
Changes in directory llvm/lib/Target:
TargetMachine.cpp updated: 1.42 -> 1.43
---
Log message:
Eliminate IntrinsicLowering from TargetMachine.
Make the CBE and V9 backends create their own, since they're the only ones that use it.
---
Diffs of the changes: (+3 -11)
TargetMachine.cpp | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
Index: llvm/lib/Target/TargetMachine.cpp
diff -u llvm/lib/Target/TargetMachine.cpp:1.42 llvm/lib/Target/TargetMachine.cpp:1.43
--- llvm/lib/Target/TargetMachine.cpp:1.42 Wed Feb 22 14:19:42 2006
+++ llvm/lib/Target/TargetMachine.cpp Wed Mar 22 23:43:15 2006
@@ -14,7 +14,6 @@
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Type.h"
-#include "llvm/CodeGen/IntrinsicLowering.h"
#include "llvm/Support/CommandLine.h"
using namespace llvm;
@@ -70,8 +69,7 @@
//---------------------------------------------------------------------------
// TargetMachine Class
//
-TargetMachine::TargetMachine(const std::string &name, IntrinsicLowering *il,
- bool LittleEndian,
+TargetMachine::TargetMachine(const std::string &name, bool LittleEndian,
unsigned char PtrSize, unsigned char PtrAl,
unsigned char DoubleAl, unsigned char FloatAl,
unsigned char LongAl, unsigned char IntAl,
@@ -80,23 +78,17 @@
: Name(name), DataLayout(name, LittleEndian,
PtrSize, PtrAl, DoubleAl, FloatAl, LongAl,
IntAl, ShortAl, ByteAl, BoolAl) {
- IL = il ? il : new DefaultIntrinsicLowering();
}
-TargetMachine::TargetMachine(const std::string &name, IntrinsicLowering *il,
- const TargetData &TD)
+TargetMachine::TargetMachine(const std::string &name, const TargetData &TD)
: Name(name), DataLayout(TD) {
- IL = il ? il : new DefaultIntrinsicLowering();
}
-TargetMachine::TargetMachine(const std::string &name, IntrinsicLowering *il,
- const Module &M)
+TargetMachine::TargetMachine(const std::string &name, const Module &M)
: Name(name), DataLayout(name, &M) {
- IL = il ? il : new DefaultIntrinsicLowering();
}
TargetMachine::~TargetMachine() {
- delete IL;
}
/// getRelocationModel - Returns the code generation relocation model. The
More information about the llvm-commits
mailing list