diff options
Diffstat (limited to 'include/llvm/MC')
-rw-r--r-- | include/llvm/MC/MCAsmInfo.h | 3 | ||||
-rw-r--r-- | include/llvm/MC/MCAsmInfoCOFF.h | 2 | ||||
-rw-r--r-- | include/llvm/MC/MCAsmInfoDarwin.h | 1 | ||||
-rw-r--r-- | include/llvm/MC/MCSection.h | 6 | ||||
-rw-r--r-- | include/llvm/MC/MCSectionELF.h | 6 | ||||
-rw-r--r-- | include/llvm/MC/MCSectionMachO.h | 2 | ||||
-rw-r--r-- | include/llvm/MC/MCStreamer.h | 4 |
7 files changed, 15 insertions, 9 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h new file mode 100644 index 0000000..fcce7a6 --- /dev/null +++ b/include/llvm/MC/MCAsmInfo.h @@ -0,0 +1,3 @@ + +#include "llvm/Target/TargetAsmInfo.h" + diff --git a/include/llvm/MC/MCAsmInfoCOFF.h b/include/llvm/MC/MCAsmInfoCOFF.h new file mode 100644 index 0000000..73a0155 --- /dev/null +++ b/include/llvm/MC/MCAsmInfoCOFF.h @@ -0,0 +1,2 @@ +#include "llvm/Target/COFFTargetAsmInfo.h" + diff --git a/include/llvm/MC/MCAsmInfoDarwin.h b/include/llvm/MC/MCAsmInfoDarwin.h new file mode 100644 index 0000000..122adb2 --- /dev/null +++ b/include/llvm/MC/MCAsmInfoDarwin.h @@ -0,0 +1 @@ +#include "llvm/Target/DarwinTargetAsmInfo.h" diff --git a/include/llvm/MC/MCSection.h b/include/llvm/MC/MCSection.h index 6a1f9d7..56784d3 100644 --- a/include/llvm/MC/MCSection.h +++ b/include/llvm/MC/MCSection.h @@ -20,7 +20,7 @@ namespace llvm { class MCContext; - class TargetAsmInfo; + class MCAsmInfo; class raw_ostream; /// MCSection - Instances of this class represent a uniqued identifier for a @@ -37,7 +37,7 @@ namespace llvm { SectionKind getKind() const { return Kind; } - virtual void PrintSwitchToSection(const TargetAsmInfo &TAI, + virtual void PrintSwitchToSection(const MCAsmInfo &TAI, raw_ostream &OS) const = 0; }; @@ -62,7 +62,7 @@ namespace llvm { const std::string &getName() const { return Name; } bool isDirective() const { return IsDirective; } - virtual void PrintSwitchToSection(const TargetAsmInfo &TAI, + virtual void PrintSwitchToSection(const MCAsmInfo &TAI, raw_ostream &OS) const; }; diff --git a/include/llvm/MC/MCSectionELF.h b/include/llvm/MC/MCSectionELF.h index 8e70e36..05cda52 100644 --- a/include/llvm/MC/MCSectionELF.h +++ b/include/llvm/MC/MCSectionELF.h @@ -48,7 +48,7 @@ public: /// ShouldOmitSectionDirective - Decides whether a '.section' directive /// should be printed before the section name bool ShouldOmitSectionDirective(const char *Name, - const TargetAsmInfo &TAI) const; + const MCAsmInfo &TAI) const; /// ShouldPrintSectionType - Only prints the section type if supported bool ShouldPrintSectionType(unsigned Ty) const; @@ -171,7 +171,7 @@ public: unsigned getType() const { return Type; } unsigned getFlags() const { return Flags; } - virtual void PrintSwitchToSection(const TargetAsmInfo &TAI, + virtual void PrintSwitchToSection(const MCAsmInfo &TAI, raw_ostream &OS) const; @@ -179,7 +179,7 @@ public: /// MCSectionELF subclasses with target specific section flags should /// implement this method if they end up adding letters to the attributes /// list. - virtual void PrintTargetSpecificSectionFlags(const TargetAsmInfo &TAI, + virtual void PrintTargetSpecificSectionFlags(const MCAsmInfo &TAI, raw_ostream &OS) const { } diff --git a/include/llvm/MC/MCSectionMachO.h b/include/llvm/MC/MCSectionMachO.h index 04b2afa..9279e29 100644 --- a/include/llvm/MC/MCSectionMachO.h +++ b/include/llvm/MC/MCSectionMachO.h @@ -166,7 +166,7 @@ public: unsigned &TAA, // Out. unsigned &StubSize); // Out. - virtual void PrintSwitchToSection(const TargetAsmInfo &TAI, + virtual void PrintSwitchToSection(const MCAsmInfo &TAI, raw_ostream &OS) const; }; diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h index 4d55990..0018873 100644 --- a/include/llvm/MC/MCStreamer.h +++ b/include/llvm/MC/MCStreamer.h @@ -25,7 +25,7 @@ namespace llvm { class MCSymbol; class StringRef; class raw_ostream; - class TargetAsmInfo; + class MCAsmInfo; /// MCStreamer - Streaming machine code generation interface. This interface /// is intended to provide a programatic interface that is very similar to the @@ -241,7 +241,7 @@ namespace llvm { /// /// \arg AP - If given, an AsmPrinter to use for printing instructions. MCStreamer *createAsmStreamer(MCContext &Ctx, raw_ostream &OS, - const TargetAsmInfo &TAI, AsmPrinter *AP = 0); + const MCAsmInfo &TAI, AsmPrinter *AP = 0); // FIXME: These two may end up getting rolled into a single // createObjectStreamer interface, which implements the assembler backend, and |