summaryrefslogtreecommitdiff
path: root/include/llvm/Target/TargetLoweringObjectFile.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-08 20:22:20 +0000
committerChris Lattner <sabre@nondot.org>2009-08-08 20:22:20 +0000
commit0c0cb7123346beab4e0d3ad6ce9570560b14971e (patch)
treea826e60b22f3eca6887d441718db3a2c817e474e /include/llvm/Target/TargetLoweringObjectFile.h
parentfbf1d271e6a7157c1b5432e84d5633f63869b5a8 (diff)
downloadllvm-0c0cb7123346beab4e0d3ad6ce9570560b14971e.tar.gz
llvm-0c0cb7123346beab4e0d3ad6ce9570560b14971e.tar.bz2
llvm-0c0cb7123346beab4e0d3ad6ce9570560b14971e.tar.xz
now that getOrCreateSection is all object-file specific,
give the impls an object-file-specific name. In the future they can take different arguments etc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78495 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetLoweringObjectFile.h')
-rw-r--r--include/llvm/Target/TargetLoweringObjectFile.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/include/llvm/Target/TargetLoweringObjectFile.h b/include/llvm/Target/TargetLoweringObjectFile.h
index e9533c4da2..f8d3f6f175 100644
--- a/include/llvm/Target/TargetLoweringObjectFile.h
+++ b/include/llvm/Target/TargetLoweringObjectFile.h
@@ -207,9 +207,8 @@ protected:
const MCSection *MergeableConst16Section;
protected:
- const MCSection *getOrCreateSection(const char *Name,
- bool isDirective,
- SectionKind K) const;
+ const MCSection *getELFSection(const char *Name, bool isDirective,
+ SectionKind Kind) const;
public:
/// ELF Constructor - AtIsCommentChar is true if the CommentCharacter from TAI
/// is "@".
@@ -250,10 +249,6 @@ class TargetLoweringObjectFileMachO : public TargetLoweringObjectFile {
const MCSection *FourByteConstantSection;
const MCSection *EightByteConstantSection;
const MCSection *SixteenByteConstantSection;
-protected:
- const MCSection *getOrCreateSection(const char *Name,
- bool isDirective,
- SectionKind K) const;
public:
virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
@@ -277,16 +272,12 @@ public:
/// getMachOSection - Return the MCSection for the specified mach-o section.
/// FIXME: Switch this to a semantic view eventually.
const MCSection *getMachOSection(const char *Name, bool isDirective,
- SectionKind K);
+ SectionKind K) const;
};
class TargetLoweringObjectFileCOFF : public TargetLoweringObjectFile {
-protected:
- const MCSection *getOrCreateSection(const char *Name,
- bool isDirective,
- SectionKind K) const;
public:
virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
@@ -304,7 +295,7 @@ public:
/// getCOFFSection - Return the MCSection for the specified COFF section.
/// FIXME: Switch this to a semantic view eventually.
const MCSection *getCOFFSection(const char *Name, bool isDirective,
- SectionKind K);
+ SectionKind K) const;
};
} // end namespace llvm