diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-08-08 22:41:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-08-08 22:41:53 +0000 |
| commit | d0d09fcf74cd20325acc3dcc38007c4ebc2816ff (patch) | |
| tree | 84b7cceebedea3e4afd191e06686054be73baf22 /include/llvm/Target/TargetLoweringObjectFile.h | |
| parent | ae37dfe9a34a5be05a5a6d78bf4ac665ec5fb1bf (diff) | |
| download | external_llvm-d0d09fcf74cd20325acc3dcc38007c4ebc2816ff.zip external_llvm-d0d09fcf74cd20325acc3dcc38007c4ebc2816ff.tar.gz external_llvm-d0d09fcf74cd20325acc3dcc38007c4ebc2816ff.tar.bz2 | |
1. Make MCSection an abstract class.
2. Move section switch printing to MCSection virtual method which takes a
TAI. This eliminates textual formatting stuff from TLOF.
3. Eliminate SwitchToSectionDirective, getSectionFlagsAsString, and
TLOFELF::AtIsCommentChar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78510 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetLoweringObjectFile.h')
| -rw-r--r-- | include/llvm/Target/TargetLoweringObjectFile.h | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/include/llvm/Target/TargetLoweringObjectFile.h b/include/llvm/Target/TargetLoweringObjectFile.h index e517fd3..0b6fd30 100644 --- a/include/llvm/Target/TargetLoweringObjectFile.h +++ b/include/llvm/Target/TargetLoweringObjectFile.h @@ -169,14 +169,6 @@ public: return 0; } - /// getSectionFlagsAsString - Turn the flags in the specified SectionKind - /// into a string that can be printed to the assembly file after the - /// ".section foo" part of a section directive. - virtual void getSectionFlagsAsString(SectionKind Kind, - SmallVectorImpl<char> &Str, - const TargetAsmInfo &TAI) const { - } - protected: virtual const MCSection * SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, @@ -187,7 +179,6 @@ protected: class TargetLoweringObjectFileELF : public TargetLoweringObjectFile { - bool AtIsCommentChar; // True if @ is the comment character on this target. bool HasCrazyBSS; protected: /// TLSDataSection - Section directive for Thread Local data. @@ -212,12 +203,9 @@ protected: const MCSection *getELFSection(const char *Name, bool isDirective, SectionKind Kind) const; public: - /// ELF Constructor - AtIsCommentChar is true if the CommentCharacter from TAI - /// is "@". - TargetLoweringObjectFileELF(bool atIsCommentChar = false, - // FIXME: REMOVE AFTER UNIQUING IS FIXED. + TargetLoweringObjectFileELF(// FIXME: REMOVE AFTER UNIQUING IS FIXED. bool hasCrazyBSS = false) - : AtIsCommentChar(atIsCommentChar), HasCrazyBSS(hasCrazyBSS) {} + : HasCrazyBSS(hasCrazyBSS) {} virtual void Initialize(MCContext &Ctx, const TargetMachine &TM); @@ -230,10 +218,6 @@ public: getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const; - void getSectionFlagsAsString(SectionKind Kind, - SmallVectorImpl<char> &Str, - const TargetAsmInfo &TAI) const; - virtual const MCSection * SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const; @@ -288,10 +272,6 @@ public: getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const; - virtual void getSectionFlagsAsString(SectionKind Kind, - SmallVectorImpl<char> &Str, - const TargetAsmInfo &TAI) const; - virtual const MCSection * SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const; |
