From f67de7a69e143f846156ce779e6b1a304a647e68 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 2 Aug 2009 04:46:05 +0000 Subject: [PATCH] alpha TAI doesn't need TM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77872 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Alpha/AlphaTargetAsmInfo.cpp | 4 +--- lib/Target/Alpha/AlphaTargetAsmInfo.h | 5 +---- lib/Target/Alpha/AlphaTargetMachine.cpp | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/Target/Alpha/AlphaTargetAsmInfo.cpp b/lib/Target/Alpha/AlphaTargetAsmInfo.cpp index ee7166e8bfa..0abdce9c3b0 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 0b50de858fc..1f0259b22c4 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 70d7b152485..9de5c36d15b 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, -- 2.34.1