Eliminate textual section switching from the x86 backend, one

more step towards "semantics sections"


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78002 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-08-03 21:53:27 +00:00
parent a6d658620f
commit 11e9657eeb
3 changed files with 43 additions and 13 deletions
+10 -1
View File
@@ -26,7 +26,6 @@ namespace llvm {
class Mangler;
class TargetMachine;
class TargetLoweringObjectFile {
MCContext *Ctx;
protected:
@@ -250,6 +249,11 @@ public:
/// FIXME: REMOVE this (rdar://7071300)
virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV,
Mangler *) const;
/// 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);
};
@@ -264,6 +268,11 @@ 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(const char *Name, bool isDirective,
SectionKind K);
};
} // end namespace llvm