diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-03 21:53:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-03 21:53:27 +0000 |
commit | d2c179c8f6a8569d6307532e2aac0ac4a5e4e71a (patch) | |
tree | c38a593e4b5bdffea8923562e16072b21f73d871 /llvm/lib/Target/TargetLoweringObjectFile.cpp | |
parent | 4d93a4f9d4b3994addbdc6aa3e3d5d81fef33710 (diff) | |
download | bcm5719-llvm-d2c179c8f6a8569d6307532e2aac0ac4a5e4e71a.tar.gz bcm5719-llvm-d2c179c8f6a8569d6307532e2aac0ac4a5e4e71a.zip |
Eliminate textual section switching from the x86 backend, one
more step towards "semantics sections"
llvm-svn: 78002
Diffstat (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r-- | llvm/lib/Target/TargetLoweringObjectFile.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp index cb950af82cd..ab4e24fea64 100644 --- a/llvm/lib/Target/TargetLoweringObjectFile.cpp +++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp @@ -532,6 +532,14 @@ getSectionForConstant(SectionKind Kind) const { // MachO //===----------------------------------------------------------------------===// +const MCSection *TargetLoweringObjectFileMachO:: +getMachOSection(const char *Name, bool isDirective, SectionKind K) { + // FOR NOW, Just forward. + return getOrCreateSection(Name, isDirective, K); +} + + + void TargetLoweringObjectFileMachO::Initialize(MCContext &Ctx, const TargetMachine &TM) { TargetLoweringObjectFile::Initialize(Ctx, TM); @@ -733,6 +741,11 @@ shouldEmitUsedDirectiveFor(const GlobalValue *GV, Mangler *Mang) const { // COFF //===----------------------------------------------------------------------===// +const MCSection *TargetLoweringObjectFileCOFF:: +getCOFFSection(const char *Name, bool isDirective, SectionKind K) { + return getOrCreateSection(Name, isDirective, K); +} + void TargetLoweringObjectFileCOFF::Initialize(MCContext &Ctx, const TargetMachine &TM) { TargetLoweringObjectFile::Initialize(Ctx, TM); |