summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetLoweringObjectFile.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-03 21:53:27 +0000
committerChris Lattner <sabre@nondot.org>2009-08-03 21:53:27 +0000
commitd2c179c8f6a8569d6307532e2aac0ac4a5e4e71a (patch)
treec38a593e4b5bdffea8923562e16072b21f73d871 /llvm/lib/Target/TargetLoweringObjectFile.cpp
parent4d93a4f9d4b3994addbdc6aa3e3d5d81fef33710 (diff)
downloadbcm5719-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.cpp13
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);
OpenPOWER on IntegriCloud