From e6ad12f8febebcdca8ea6b0e48014786267df1ea Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 31 Jul 2009 18:48:30 +0000 Subject: switch off of 'Section' onto MCSection. We're not properly using MCSection subclasses yet, but this is a step in the right direction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77708 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Alpha/AlphaISelLowering.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/Target/Alpha/AlphaISelLowering.cpp') diff --git a/lib/Target/Alpha/AlphaISelLowering.cpp b/lib/Target/Alpha/AlphaISelLowering.cpp index f7a38c2..c5f24dc 100644 --- a/lib/Target/Alpha/AlphaISelLowering.cpp +++ b/lib/Target/Alpha/AlphaISelLowering.cpp @@ -31,14 +31,16 @@ #include "llvm/Support/raw_ostream.h" using namespace llvm; - +namespace { class TargetLoweringObjectFileAlpha : public TargetLoweringObjectFile { public: - TargetLoweringObjectFileAlpha() { + void Initialize(MCContext &Ctx, const TargetMachine &TM) { + TargetLoweringObjectFile::Initialize(Ctx, TM); TextSection = getOrCreateSection("_text", true, SectionKind::Text); DataSection = getOrCreateSection("_data", true, SectionKind::DataRel); } }; +} -- cgit v1.1