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 | af76e592c7f9deff0e55c13dbb4a34f07f1c7f64 (patch) | |
tree | 7a9d9824fa8735ec1a2eed14653689ce31b567a1 /lib/Target/PIC16 | |
parent | 9c52affd374e20b212d3266050f13d87ba80e36d (diff) | |
download | llvm-af76e592c7f9deff0e55c13dbb4a34f07f1c7f64.tar.gz llvm-af76e592c7f9deff0e55c13dbb4a34f07f1c7f64.tar.bz2 llvm-af76e592c7f9deff0e55c13dbb4a34f07f1c7f64.tar.xz |
Rename TargetAsmInfo (and its subclasses) to MCAsmInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79763 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16')
-rw-r--r-- | lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp | 6 | ||||
-rw-r--r-- | lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.h | 7 | ||||
-rw-r--r-- | lib/Target/PIC16/MCSectionPIC16.h | 2 | ||||
-rw-r--r-- | lib/Target/PIC16/PIC16DebugInfo.h | 6 | ||||
-rw-r--r-- | lib/Target/PIC16/PIC16MCAsmInfo.cpp (renamed from lib/Target/PIC16/PIC16TargetAsmInfo.cpp) | 12 | ||||
-rw-r--r-- | lib/Target/PIC16/PIC16MCAsmInfo.h (renamed from lib/Target/PIC16/PIC16TargetAsmInfo.h) | 10 | ||||
-rw-r--r-- | lib/Target/PIC16/PIC16MemSelOpt.cpp | 2 | ||||
-rw-r--r-- | lib/Target/PIC16/PIC16TargetMachine.cpp | 4 | ||||
-rw-r--r-- | lib/Target/PIC16/PIC16TargetObjectFile.cpp | 2 |
9 files changed, 25 insertions, 26 deletions
diff --git a/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp b/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp index 1522e4ca2e..d6e95561a2 100644 --- a/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp +++ b/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp @@ -14,7 +14,7 @@ #include "PIC16AsmPrinter.h" #include "MCSectionPIC16.h" -#include "PIC16TargetAsmInfo.h" +#include "PIC16MCAsmInfo.h" #include "llvm/DerivedTypes.h" #include "llvm/Function.h" #include "llvm/Module.h" @@ -34,10 +34,10 @@ using namespace llvm; #include "PIC16GenAsmWriter.inc" PIC16AsmPrinter::PIC16AsmPrinter(formatted_raw_ostream &O, TargetMachine &TM, - const TargetAsmInfo *T, bool V) + const MCAsmInfo *T, bool V) : AsmPrinter(O, TM, T, V), DbgInfo(O, T) { PTLI = static_cast<PIC16TargetLowering*>(TM.getTargetLowering()); - PTAI = static_cast<const PIC16TargetAsmInfo*>(T); + PTAI = static_cast<const PIC16MCAsmInfo*>(T); PTOF = (PIC16TargetObjectFile*)&PTLI->getObjFileLowering(); } diff --git a/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.h b/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.h index 3eea880a20..35a87e0ed6 100644 --- a/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.h +++ b/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.h @@ -18,12 +18,11 @@ #include "PIC16.h" #include "PIC16TargetMachine.h" #include "PIC16DebugInfo.h" +#include "PIC16MCAsmInfo.h" #include "PIC16TargetObjectFile.h" #include "llvm/Analysis/DebugInfo.h" -#include "PIC16TargetAsmInfo.h" #include "llvm/CodeGen/AsmPrinter.h" #include "llvm/Support/CommandLine.h" -#include "llvm/Target/TargetAsmInfo.h" #include "llvm/Target/TargetMachine.h" #include <list> #include <string> @@ -32,7 +31,7 @@ namespace llvm { class VISIBILITY_HIDDEN PIC16AsmPrinter : public AsmPrinter { public: explicit PIC16AsmPrinter(formatted_raw_ostream &O, TargetMachine &TM, - const TargetAsmInfo *T, bool V); + const MCAsmInfo *T, bool V); private: virtual const char *getPassName() const { return "PIC16 Assembly Printer"; @@ -71,7 +70,7 @@ namespace llvm { PIC16TargetObjectFile *PTOF; PIC16TargetLowering *PTLI; PIC16DbgInfo DbgInfo; - const PIC16TargetAsmInfo *PTAI; + const PIC16MCAsmInfo *PTAI; std::list<const char *> LibcallDecls; // List of extern decls. }; } // end of namespace diff --git a/lib/Target/PIC16/MCSectionPIC16.h b/lib/Target/PIC16/MCSectionPIC16.h index 66607c813f..048f2771b6 100644 --- a/lib/Target/PIC16/MCSectionPIC16.h +++ b/lib/Target/PIC16/MCSectionPIC16.h @@ -32,7 +32,7 @@ namespace llvm { static MCSectionPIC16 *Create(const StringRef &Name, SectionKind K, MCContext &Ctx); - virtual void PrintSwitchToSection(const TargetAsmInfo &TAI, + virtual void PrintSwitchToSection(const MCAsmInfo &TAI, raw_ostream &OS) const; }; diff --git a/lib/Target/PIC16/PIC16DebugInfo.h b/lib/Target/PIC16/PIC16DebugInfo.h index a46c06c1ea..1491716fc2 100644 --- a/lib/Target/PIC16/PIC16DebugInfo.h +++ b/lib/Target/PIC16/PIC16DebugInfo.h @@ -16,7 +16,7 @@ #include "llvm/Analysis/DebugInfo.h" #include "llvm/Module.h" -#include "llvm/Target/TargetAsmInfo.h" +#include "llvm/MC/MCAsmInfo.h" #include <map> namespace llvm { @@ -94,7 +94,7 @@ namespace llvm { class PIC16DbgInfo { formatted_raw_ostream &O; - const TargetAsmInfo *TAI; + const MCAsmInfo *TAI; std::string CurFile; unsigned CurLine; @@ -103,7 +103,7 @@ namespace llvm { bool EmitDebugDirectives; public: - PIC16DbgInfo(formatted_raw_ostream &o, const TargetAsmInfo *T) + PIC16DbgInfo(formatted_raw_ostream &o, const MCAsmInfo *T) : O(o), TAI(T) { CurFile = ""; CurLine = 0; diff --git a/lib/Target/PIC16/PIC16TargetAsmInfo.cpp b/lib/Target/PIC16/PIC16MCAsmInfo.cpp index 8b30291675..a17d1a8b1c 100644 --- a/lib/Target/PIC16/PIC16TargetAsmInfo.cpp +++ b/lib/Target/PIC16/PIC16MCAsmInfo.cpp @@ -1,4 +1,4 @@ -//===-- PIC16TargetAsmInfo.cpp - PIC16 asm properties ---------------------===// +//===-- PIC16MCAsmInfo.cpp - PIC16 asm properties -------------------------===// // // The LLVM Compiler Infrastructure // @@ -7,11 +7,11 @@ // //===----------------------------------------------------------------------===// // -// This file contains the declarations of the PIC16TargetAsmInfo properties. +// This file contains the declarations of the PIC16MCAsmInfo properties. // //===----------------------------------------------------------------------===// -#include "PIC16TargetAsmInfo.h" +#include "PIC16MCAsmInfo.h" // FIXME: Layering violation to get enums and static function, should be moved // to separate headers. @@ -19,7 +19,7 @@ #include "PIC16ISelLowering.h" using namespace llvm; -PIC16TargetAsmInfo::PIC16TargetAsmInfo(const Target &T, const StringRef &TT) { +PIC16MCAsmInfo::PIC16MCAsmInfo(const Target &T, const StringRef &TT) { CommentString = ";"; GlobalPrefix = PAN::getTagName(PAN::PREFIX_SYMBOL); GlobalDirective = "\tglobal\t"; @@ -43,8 +43,8 @@ PIC16TargetAsmInfo::PIC16TargetAsmInfo(const Target &T, const StringRef &TT) { HasSingleParameterDotFile = false; } -const char *PIC16TargetAsmInfo:: -getDataASDirective(unsigned Size, unsigned AS) const { +const char *PIC16MCAsmInfo::getDataASDirective(unsigned Size, + unsigned AS) const { if (AS != PIC16ISD::ROM_SPACE) return 0; diff --git a/lib/Target/PIC16/PIC16TargetAsmInfo.h b/lib/Target/PIC16/PIC16MCAsmInfo.h index 23c5ebced6..e84db8532a 100644 --- a/lib/Target/PIC16/PIC16TargetAsmInfo.h +++ b/lib/Target/PIC16/PIC16MCAsmInfo.h @@ -1,4 +1,4 @@ -//=====-- PIC16TargetAsmInfo.h - PIC16 asm properties ---------*- C++ -*--====// +//=====-- PIC16MCAsmInfo.h - PIC16 asm properties -------------*- C++ -*--====// // // The LLVM Compiler Infrastructure // @@ -7,25 +7,25 @@ // //===----------------------------------------------------------------------===// // -// This file contains the declaration of the PIC16TargetAsmInfo class. +// This file contains the declaration of the PIC16MCAsmInfo class. // //===----------------------------------------------------------------------===// #ifndef PIC16TARGETASMINFO_H #define PIC16TARGETASMINFO_H -#include "llvm/Target/TargetAsmInfo.h" +#include "llvm/MC/MCAsmInfo.h" namespace llvm { class Target; class StringRef; - class PIC16TargetAsmInfo : public TargetAsmInfo { + class PIC16MCAsmInfo : public MCAsmInfo { const char *RomData8bitsDirective; const char *RomData16bitsDirective; const char *RomData32bitsDirective; public: - PIC16TargetAsmInfo(const Target &T, const StringRef &TT); + PIC16MCAsmInfo(const Target &T, const StringRef &TT); virtual const char *getDataASDirective(unsigned size, unsigned AS) const; }; diff --git a/lib/Target/PIC16/PIC16MemSelOpt.cpp b/lib/Target/PIC16/PIC16MemSelOpt.cpp index 43d47ae529..c9ebb5756c 100644 --- a/lib/Target/PIC16/PIC16MemSelOpt.cpp +++ b/lib/Target/PIC16/PIC16MemSelOpt.cpp @@ -22,7 +22,7 @@ #define DEBUG_TYPE "pic16-codegen" #include "PIC16.h" #include "PIC16InstrInfo.h" -#include "PIC16TargetAsmInfo.h" +#include "PIC16MCAsmInfo.h" #include "PIC16TargetMachine.h" #include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/CodeGen/MachineInstrBuilder.h" diff --git a/lib/Target/PIC16/PIC16TargetMachine.cpp b/lib/Target/PIC16/PIC16TargetMachine.cpp index 2cdaff344f..08307e7cef 100644 --- a/lib/Target/PIC16/PIC16TargetMachine.cpp +++ b/lib/Target/PIC16/PIC16TargetMachine.cpp @@ -12,7 +12,7 @@ //===----------------------------------------------------------------------===// #include "PIC16.h" -#include "PIC16TargetAsmInfo.h" +#include "PIC16MCAsmInfo.h" #include "PIC16TargetMachine.h" #include "llvm/PassManager.h" #include "llvm/CodeGen/Passes.h" @@ -24,7 +24,7 @@ extern "C" void LLVMInitializePIC16Target() { // Register the target. Curretnly the codegen works for // enhanced pic16 mid-range. RegisterTargetMachine<PIC16TargetMachine> X(ThePIC16Target); - RegisterAsmInfo<PIC16TargetAsmInfo> A(ThePIC16Target); + RegisterAsmInfo<PIC16MCAsmInfo> A(ThePIC16Target); } diff --git a/lib/Target/PIC16/PIC16TargetObjectFile.cpp b/lib/Target/PIC16/PIC16TargetObjectFile.cpp index 07d8381800..e6dfa67426 100644 --- a/lib/Target/PIC16/PIC16TargetObjectFile.cpp +++ b/lib/Target/PIC16/PIC16TargetObjectFile.cpp @@ -25,7 +25,7 @@ MCSectionPIC16 *MCSectionPIC16::Create(const StringRef &Name, } -void MCSectionPIC16::PrintSwitchToSection(const TargetAsmInfo &TAI, +void MCSectionPIC16::PrintSwitchToSection(const MCAsmInfo &TAI, raw_ostream &OS) const { OS << getName() << '\n'; } |