diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-22 21:43:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-22 21:43:10 +0000 |
commit | e9a75a6654b7b42f41e6c8d298dc89e0c347c6bd (patch) | |
tree | aac669bd6d1440700c4d957978b4cf7946206d65 /llvm/lib/MC/MCSectionELF.cpp | |
parent | cbf10f5de597502d4f59e988b7e3e3a32c83de0f (diff) | |
download | bcm5719-llvm-e9a75a6654b7b42f41e6c8d298dc89e0c347c6bd.tar.gz bcm5719-llvm-e9a75a6654b7b42f41e6c8d298dc89e0c347c6bd.zip |
rename TAI -> MAI, being careful not to make MAILJMP instructions :)
llvm-svn: 79777
Diffstat (limited to 'llvm/lib/MC/MCSectionELF.cpp')
-rw-r--r-- | llvm/lib/MC/MCSectionELF.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/MC/MCSectionELF.cpp b/llvm/lib/MC/MCSectionELF.cpp index 96f8429ad92..660a8c9489f 100644 --- a/llvm/lib/MC/MCSectionELF.cpp +++ b/llvm/lib/MC/MCSectionELF.cpp @@ -23,13 +23,13 @@ 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 MCAsmInfo &TAI) const { + const MCAsmInfo &MAI) const { // FIXME: Does .section .bss/.data/.text work everywhere?? if (strcmp(Name, ".text") == 0 || strcmp(Name, ".data") == 0 || (strcmp(Name, ".bss") == 0 && - !TAI.usesELFSectionDirectiveForBSS())) + !MAI.usesELFSectionDirectiveForBSS())) return true; return false; @@ -44,10 +44,10 @@ bool MCSectionELF::ShouldPrintSectionType(unsigned Ty) const { return true; } -void MCSectionELF::PrintSwitchToSection(const MCAsmInfo &TAI, +void MCSectionELF::PrintSwitchToSection(const MCAsmInfo &MAI, raw_ostream &OS) const { - if (ShouldOmitSectionDirective(SectionName.c_str(), TAI)) { + if (ShouldOmitSectionDirective(SectionName.c_str(), MAI)) { OS << '\t' << getSectionName() << '\n'; return; } @@ -55,7 +55,7 @@ void MCSectionELF::PrintSwitchToSection(const MCAsmInfo &TAI, OS << "\t.section\t" << getSectionName(); // Handle the weird solaris syntax if desired. - if (TAI.usesSunStyleELFSectionSwitchSyntax() && + if (MAI.usesSunStyleELFSectionSwitchSyntax() && !(Flags & MCSectionELF::SHF_MERGE)) { if (Flags & MCSectionELF::SHF_ALLOC) OS << ",#alloc"; @@ -82,7 +82,7 @@ void MCSectionELF::PrintSwitchToSection(const MCAsmInfo &TAI, // If there are target-specific flags, print them. if (Flags & ~MCSectionELF::TARGET_INDEP_SHF) - PrintTargetSpecificSectionFlags(TAI, OS); + PrintTargetSpecificSectionFlags(MAI, OS); OS << '"'; @@ -90,7 +90,7 @@ void MCSectionELF::PrintSwitchToSection(const MCAsmInfo &TAI, OS << ','; // If comment string is '@', e.g. as on ARM - use '%' instead - if (TAI.getCommentString()[0] == '@') + if (MAI.getCommentString()[0] == '@') OS << '%'; else OS << '@'; |