aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/MSIL/MSILWriter.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-04 04:02:45 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-04 04:02:45 +0000
commit214e22396fe86aa20c587d5c7df9ce63bfd4549e (patch)
tree207b168d9836859d7aecda292bd32f8d9cd31a53 /lib/Target/MSIL/MSILWriter.cpp
parent2822e174f6e7d728c03c47cf0fcda8a01253107a (diff)
Remove now unused Module argument to createTargetMachine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSIL/MSILWriter.cpp')
-rw-r--r--lib/Target/MSIL/MSILWriter.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Target/MSIL/MSILWriter.cpp b/lib/Target/MSIL/MSILWriter.cpp
index 873f9b7125..226d146a0e 100644
--- a/lib/Target/MSIL/MSILWriter.cpp
+++ b/lib/Target/MSIL/MSILWriter.cpp
@@ -31,10 +31,8 @@ using namespace llvm;
namespace llvm {
// TargetMachine for the MSIL
struct VISIBILITY_HIDDEN MSILTarget : public TargetMachine {
- const TargetData DataLayout; // Calculates type size & alignment
-
- MSILTarget(const Target &T, const Module &M, const std::string &FS)
- : TargetMachine(T), DataLayout(&M) {}
+ MSILTarget(const Target &T, const std::string &TT, const std::string &FS)
+ : TargetMachine(T) {}
virtual bool WantsWholeFile() const { return true; }
virtual bool addPassesToEmitWholeFile(PassManager &PM,
@@ -48,7 +46,7 @@ namespace llvm {
extern "C" void LLVMInitializeMSILTarget() {
// Register the target.
- RegisterTargetMachineDeprecated<MSILTarget> X(TheMSILTarget);
+ RegisterTargetMachine<MSILTarget> X(TheMSILTarget);
}
bool MSILModule::runOnModule(Module &M) {