From 2be66ce4204357594e46eb8b4d20ec776b890f17 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 2 Aug 2009 04:42:09 +0000 Subject: [PATCH] xcore TAI doesn't need TM. llvm-svn: 77868 --- llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp | 2 +- llvm/lib/Target/XCore/XCoreTargetAsmInfo.h | 3 +-- llvm/lib/Target/XCore/XCoreTargetMachine.cpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp b/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp index 6f2dbbb7bcec..a5bc6c2fc6b0 100644 --- a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp +++ b/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp @@ -10,7 +10,7 @@ #include "XCoreTargetAsmInfo.h" using namespace llvm; -XCoreTargetAsmInfo::XCoreTargetAsmInfo(const TargetMachine &TM) { +XCoreTargetAsmInfo::XCoreTargetAsmInfo() { SupportsDebugInformation = true; Data16bitsDirective = "\t.short\t"; Data32bitsDirective = "\t.long\t"; diff --git a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.h b/llvm/lib/Target/XCore/XCoreTargetAsmInfo.h index d1ceb3ff6c5d..c4f71e43137e 100644 --- a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.h +++ b/llvm/lib/Target/XCore/XCoreTargetAsmInfo.h @@ -17,10 +17,9 @@ #include "llvm/Target/TargetAsmInfo.h" namespace llvm { - class TargetMachine; class XCoreTargetAsmInfo : public TargetAsmInfo { public: - explicit XCoreTargetAsmInfo(const TargetMachine &TM); + explicit XCoreTargetAsmInfo(); }; } // namespace llvm diff --git a/llvm/lib/Target/XCore/XCoreTargetMachine.cpp b/llvm/lib/Target/XCore/XCoreTargetMachine.cpp index faea96057217..eac8ca1b1546 100644 --- a/llvm/lib/Target/XCore/XCoreTargetMachine.cpp +++ b/llvm/lib/Target/XCore/XCoreTargetMachine.cpp @@ -18,7 +18,7 @@ using namespace llvm; const TargetAsmInfo *XCoreTargetMachine::createTargetAsmInfo() const { - return new XCoreTargetAsmInfo(*this); + return new XCoreTargetAsmInfo(); } /// XCoreTargetMachine ctor - Create an ILP32 architecture model