summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-05-07 17:17:41 +0000
committerChris Lattner <sabre@nondot.org>2010-05-07 17:17:41 +0000
commiteb40a0fd98c44ecc6360e7fab33cf9e9911bed4f (patch)
tree8be5bd0c32a88edfdcd71628360aee7e01146bde /include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
parent5fa680d3970b11cd7f6be8663688dc50a32a7c9e (diff)
downloadllvm-eb40a0fd98c44ecc6360e7fab33cf9e9911bed4f.tar.gz
llvm-eb40a0fd98c44ecc6360e7fab33cf9e9911bed4f.tar.bz2
llvm-eb40a0fd98c44ecc6360e7fab33cf9e9911bed4f.tar.xz
switch MCSectionCOFF from a syntactic to semantic representation,
patch by Peter Housel! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103267 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/TargetLoweringObjectFileImpl.h')
-rw-r--r--include/llvm/CodeGen/TargetLoweringObjectFileImpl.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h b/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
index 90905f51e3..9a74c57af5 100644
--- a/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
+++ b/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
@@ -161,13 +161,15 @@ public:
class TargetLoweringObjectFileCOFF : public TargetLoweringObjectFile {
- mutable void *UniquingMap;
+ const MCSection *DrectveSection;
public:
- TargetLoweringObjectFileCOFF() : UniquingMap(0) {}
- ~TargetLoweringObjectFileCOFF();
+ TargetLoweringObjectFileCOFF() {}
+ ~TargetLoweringObjectFileCOFF() {}
virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
+ virtual const MCSection *getDrectveSection() const { return DrectveSection; }
+
virtual const MCSection *
getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
Mangler *Mang, const TargetMachine &TM) const;
@@ -175,11 +177,6 @@ public:
virtual const MCSection *
SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
Mangler *Mang, const TargetMachine &TM) const;
-
- /// getCOFFSection - Return the MCSection for the specified COFF section.
- /// FIXME: Switch this to a semantic view eventually.
- const MCSection *getCOFFSection(StringRef Name, bool isDirective,
- SectionKind K) const;
};
} // end namespace llvm