aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-02 04:46:05 +0000
committerChris Lattner <sabre@nondot.org>2009-08-02 04:46:05 +0000
commitf67de7a69e143f846156ce779e6b1a304a647e68 (patch)
tree9aa975b4d69e2d9161fbf1f4d1d513b01240e5ae
parent68f2b2cdd58d2fee1d76a935d113b6c3b3190567 (diff)
alpha TAI doesn't need TM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77872 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/Alpha/AlphaTargetAsmInfo.cpp4
-rw-r--r--lib/Target/Alpha/AlphaTargetAsmInfo.h5
-rw-r--r--lib/Target/Alpha/AlphaTargetMachine.cpp2
3 files changed, 3 insertions, 8 deletions
diff --git a/lib/Target/Alpha/AlphaTargetAsmInfo.cpp b/lib/Target/Alpha/AlphaTargetAsmInfo.cpp
index ee7166e8bf..0abdce9c3b 100644
--- a/lib/Target/Alpha/AlphaTargetAsmInfo.cpp
+++ b/lib/Target/Alpha/AlphaTargetAsmInfo.cpp
@@ -11,12 +11,10 @@
//
//===----------------------------------------------------------------------===//
-#include "AlphaTargetMachine.h"
#include "AlphaTargetAsmInfo.h"
-
using namespace llvm;
-AlphaTargetAsmInfo::AlphaTargetAsmInfo(const AlphaTargetMachine &TM) {
+AlphaTargetAsmInfo::AlphaTargetAsmInfo() {
AlignmentIsInBytes = false;
PrivateGlobalPrefix = "$";
JumpTableDirective = ".gprel32";
diff --git a/lib/Target/Alpha/AlphaTargetAsmInfo.h b/lib/Target/Alpha/AlphaTargetAsmInfo.h
index 0b50de858f..1f0259b22c 100644
--- a/lib/Target/Alpha/AlphaTargetAsmInfo.h
+++ b/lib/Target/Alpha/AlphaTargetAsmInfo.h
@@ -18,11 +18,8 @@
namespace llvm {
- // Forward declaration.
- class AlphaTargetMachine;
-
struct AlphaTargetAsmInfo : public TargetAsmInfo {
- explicit AlphaTargetAsmInfo(const AlphaTargetMachine &TM);
+ explicit AlphaTargetAsmInfo();
};
} // namespace llvm
diff --git a/lib/Target/Alpha/AlphaTargetMachine.cpp b/lib/Target/Alpha/AlphaTargetMachine.cpp
index 70d7b15248..9de5c36d15 100644
--- a/lib/Target/Alpha/AlphaTargetMachine.cpp
+++ b/lib/Target/Alpha/AlphaTargetMachine.cpp
@@ -27,7 +27,7 @@ extern "C" void LLVMInitializeAlphaTarget() {
}
const TargetAsmInfo *AlphaTargetMachine::createTargetAsmInfo() const {
- return new AlphaTargetAsmInfo(*this);
+ return new AlphaTargetAsmInfo();
}
AlphaTargetMachine::AlphaTargetMachine(const Target &T, const Module &M,