diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-08-22 20:48:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-08-22 20:48:53 +0000 |
| commit | 7b26fce23e5f733d1a614beae71d0499e78aeab1 (patch) | |
| tree | c952f7380295ff3ba73e21eff6c90dafd9cfdf85 /llvm/lib/Target/XCore | |
| parent | 259717287abf3ec138f6c149cbe7703315848d43 (diff) | |
| download | bcm5719-llvm-7b26fce23e5f733d1a614beae71d0499e78aeab1.tar.gz bcm5719-llvm-7b26fce23e5f733d1a614beae71d0499e78aeab1.zip | |
Rename TargetAsmInfo (and its subclasses) to MCAsmInfo.
llvm-svn: 79763
Diffstat (limited to 'llvm/lib/Target/XCore')
| -rw-r--r-- | llvm/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/XCore/MCSectionXCore.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/XCore/MCSectionXCore.h | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/XCore/XCoreMCAsmInfo.cpp (renamed from llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp) | 6 | ||||
| -rw-r--r-- | llvm/lib/Target/XCore/XCoreMCAsmInfo.h (renamed from llvm/lib/Target/XCore/XCoreTargetAsmInfo.h) | 10 | ||||
| -rw-r--r-- | llvm/lib/Target/XCore/XCoreTargetMachine.cpp | 4 |
6 files changed, 14 insertions, 14 deletions
diff --git a/llvm/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp b/llvm/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp index 88473495d13..bf32d697846 100644 --- a/llvm/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp +++ b/llvm/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp @@ -16,7 +16,7 @@ #include "XCore.h" #include "XCoreInstrInfo.h" #include "XCoreSubtarget.h" -#include "XCoreTargetAsmInfo.h" +#include "XCoreMCAsmInfo.h" #include "XCoreTargetMachine.h" #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" @@ -56,7 +56,7 @@ namespace { const XCoreSubtarget &Subtarget; public: explicit XCoreAsmPrinter(formatted_raw_ostream &O, TargetMachine &TM, - const TargetAsmInfo *T, bool V) + const MCAsmInfo *T, bool V) : AsmPrinter(O, TM, T, V), DW(0), Subtarget(TM.getSubtarget<XCoreSubtarget>()) {} diff --git a/llvm/lib/Target/XCore/MCSectionXCore.cpp b/llvm/lib/Target/XCore/MCSectionXCore.cpp index d2bb9e47d8a..a40f0326a58 100644 --- a/llvm/lib/Target/XCore/MCSectionXCore.cpp +++ b/llvm/lib/Target/XCore/MCSectionXCore.cpp @@ -26,7 +26,7 @@ MCSectionXCore::Create(const StringRef &Section, unsigned Type, /// PrintTargetSpecificSectionFlags - This handles the XCore-specific cp/dp /// section flags. -void MCSectionXCore::PrintTargetSpecificSectionFlags(const TargetAsmInfo &TAI, +void MCSectionXCore::PrintTargetSpecificSectionFlags(const MCAsmInfo &TAI, raw_ostream &OS) const { if (getFlags() & MCSectionXCore::SHF_CP_SECTION) OS << 'c'; diff --git a/llvm/lib/Target/XCore/MCSectionXCore.h b/llvm/lib/Target/XCore/MCSectionXCore.h index e2e55bdaa62..7396f4e4c15 100644 --- a/llvm/lib/Target/XCore/MCSectionXCore.h +++ b/llvm/lib/Target/XCore/MCSectionXCore.h @@ -44,7 +44,7 @@ public: /// PrintTargetSpecificSectionFlags - This handles the XCore-specific cp/dp /// section flags. - virtual void PrintTargetSpecificSectionFlags(const TargetAsmInfo &TAI, + virtual void PrintTargetSpecificSectionFlags(const MCAsmInfo &TAI, raw_ostream &OS) const; }; diff --git a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp b/llvm/lib/Target/XCore/XCoreMCAsmInfo.cpp index 9cd87a57551..dffdda9a1fd 100644 --- a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp +++ b/llvm/lib/Target/XCore/XCoreMCAsmInfo.cpp @@ -1,4 +1,4 @@ -//===-- XCoreTargetAsmInfo.cpp - XCore asm properties ---------------------===// +//===-- XCoreMCAsmInfo.cpp - XCore asm properties -------------------------===// // // The LLVM Compiler Infrastructure // @@ -7,10 +7,10 @@ // //===----------------------------------------------------------------------===// -#include "XCoreTargetAsmInfo.h" +#include "XCoreMCAsmInfo.h" using namespace llvm; -XCoreTargetAsmInfo::XCoreTargetAsmInfo(const Target &T, const StringRef &TT) { +XCoreMCAsmInfo::XCoreMCAsmInfo(const Target &T, const StringRef &TT) { SupportsDebugInformation = true; Data16bitsDirective = "\t.short\t"; Data32bitsDirective = "\t.long\t"; diff --git a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.h b/llvm/lib/Target/XCore/XCoreMCAsmInfo.h index 784288633ff..01f8e481a94 100644 --- a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.h +++ b/llvm/lib/Target/XCore/XCoreMCAsmInfo.h @@ -1,4 +1,4 @@ -//=====-- XCoreTargetAsmInfo.h - XCore asm properties ---------*- C++ -*--====// +//=====-- XCoreMCAsmInfo.h - XCore asm properties -------------*- C++ -*--====// // // The LLVM Compiler Infrastructure // @@ -7,21 +7,21 @@ // //===----------------------------------------------------------------------===// // -// This file contains the declaration of the XCoreTargetAsmInfo class. +// This file contains the declaration of the XCoreMCAsmInfo class. // //===----------------------------------------------------------------------===// #ifndef XCORETARGETASMINFO_H #define XCORETARGETASMINFO_H -#include "llvm/Target/TargetAsmInfo.h" +#include "llvm/MC/MCAsmInfo.h" namespace llvm { class Target; class StringRef; - class XCoreTargetAsmInfo : public TargetAsmInfo { + class XCoreMCAsmInfo : public MCAsmInfo { public: - explicit XCoreTargetAsmInfo(const Target &T, const StringRef &TT); + explicit XCoreMCAsmInfo(const Target &T, const StringRef &TT); }; } // namespace llvm diff --git a/llvm/lib/Target/XCore/XCoreTargetMachine.cpp b/llvm/lib/Target/XCore/XCoreTargetMachine.cpp index b1afc7e61ae..75f2055ebf9 100644 --- a/llvm/lib/Target/XCore/XCoreTargetMachine.cpp +++ b/llvm/lib/Target/XCore/XCoreTargetMachine.cpp @@ -10,7 +10,7 @@ // //===----------------------------------------------------------------------===// -#include "XCoreTargetAsmInfo.h" +#include "XCoreMCAsmInfo.h" #include "XCoreTargetMachine.h" #include "XCore.h" #include "llvm/Module.h" @@ -40,5 +40,5 @@ bool XCoreTargetMachine::addInstSelector(PassManagerBase &PM, // Force static initialization. extern "C" void LLVMInitializeXCoreTarget() { RegisterTargetMachine<XCoreTargetMachine> X(TheXCoreTarget); - RegisterAsmInfo<XCoreTargetAsmInfo> Y(TheXCoreTarget); + RegisterAsmInfo<XCoreMCAsmInfo> Y(TheXCoreTarget); } |

