diff options
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCAsmStreamer.cpp | 8 | ||||
-rw-r--r-- | lib/MC/MCSection.cpp | 4 | ||||
-rw-r--r-- | lib/MC/MCSectionELF.cpp | 6 | ||||
-rw-r--r-- | lib/MC/MCSectionMachO.cpp | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp index 655137d580..32460c2b85 100644 --- a/lib/MC/MCAsmStreamer.cpp +++ b/lib/MC/MCAsmStreamer.cpp @@ -14,7 +14,7 @@ #include "llvm/MC/MCSectionMachO.h" #include "llvm/MC/MCSymbol.h" #include "llvm/MC/MCValue.h" -#include "llvm/Target/TargetAsmInfo.h" +#include "llvm/MC/MCAsmInfo.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/MathExtras.h" #include "llvm/Support/raw_ostream.h" @@ -24,10 +24,10 @@ namespace { class MCAsmStreamer : public MCStreamer { raw_ostream &OS; - const TargetAsmInfo &TAI; + const MCAsmInfo &TAI; AsmPrinter *Printer; public: - MCAsmStreamer(MCContext &Context, raw_ostream &_OS, const TargetAsmInfo &tai, + MCAsmStreamer(MCContext &Context, raw_ostream &_OS, const MCAsmInfo &tai, AsmPrinter *_AsmPrinter) : MCStreamer(Context), OS(_OS), TAI(tai), Printer(_AsmPrinter) {} ~MCAsmStreamer() {} @@ -314,6 +314,6 @@ void MCAsmStreamer::Finish() { } MCStreamer *llvm::createAsmStreamer(MCContext &Context, raw_ostream &OS, - const TargetAsmInfo &TAI, AsmPrinter *AP) { + const MCAsmInfo &TAI, AsmPrinter *AP) { return new MCAsmStreamer(Context, OS, TAI, AP); } diff --git a/lib/MC/MCSection.cpp b/lib/MC/MCSection.cpp index 3e837635f2..1f2896b7cc 100644 --- a/lib/MC/MCSection.cpp +++ b/lib/MC/MCSection.cpp @@ -9,7 +9,7 @@ #include "llvm/MC/MCSection.h" #include "llvm/MC/MCContext.h" -#include "llvm/Target/TargetAsmInfo.h" +#include "llvm/MC/MCAsmInfo.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; @@ -29,7 +29,7 @@ Create(const StringRef &Name, bool IsDirective, SectionKind K, MCContext &Ctx) { return new (Ctx) MCSectionCOFF(Name, IsDirective, K); } -void MCSectionCOFF::PrintSwitchToSection(const TargetAsmInfo &TAI, +void MCSectionCOFF::PrintSwitchToSection(const MCAsmInfo &TAI, raw_ostream &OS) const { if (isDirective()) { diff --git a/lib/MC/MCSectionELF.cpp b/lib/MC/MCSectionELF.cpp index fe0fcb3a06..96f8429ad9 100644 --- a/lib/MC/MCSectionELF.cpp +++ b/lib/MC/MCSectionELF.cpp @@ -10,7 +10,7 @@ #include "llvm/MC/MCSectionELF.h" #include "llvm/MC/MCContext.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Target/TargetAsmInfo.h" +#include "llvm/MC/MCAsmInfo.h" using namespace llvm; @@ -23,7 +23,7 @@ Create(const StringRef &Section, unsigned Type, unsigned Flags, // ShouldOmitSectionDirective - Decides whether a '.section' directive // should be printed before the section name bool MCSectionELF::ShouldOmitSectionDirective(const char *Name, - const TargetAsmInfo &TAI) const { + const MCAsmInfo &TAI) const { // FIXME: Does .section .bss/.data/.text work everywhere?? if (strcmp(Name, ".text") == 0 || @@ -44,7 +44,7 @@ bool MCSectionELF::ShouldPrintSectionType(unsigned Ty) const { return true; } -void MCSectionELF::PrintSwitchToSection(const TargetAsmInfo &TAI, +void MCSectionELF::PrintSwitchToSection(const MCAsmInfo &TAI, raw_ostream &OS) const { if (ShouldOmitSectionDirective(SectionName.c_str(), TAI)) { diff --git a/lib/MC/MCSectionMachO.cpp b/lib/MC/MCSectionMachO.cpp index 0cdffc85e8..5615398737 100644 --- a/lib/MC/MCSectionMachO.cpp +++ b/lib/MC/MCSectionMachO.cpp @@ -72,7 +72,7 @@ Create(const StringRef &Segment, const StringRef &Section, Reserved2, K); } -void MCSectionMachO::PrintSwitchToSection(const TargetAsmInfo &TAI, +void MCSectionMachO::PrintSwitchToSection(const MCAsmInfo &TAI, raw_ostream &OS) const { OS << "\t.section\t" << getSegmentName() << ',' << getSectionName(); |