Use elf Object File directly
authorAndrew Lenharth <andrewl@lenharth.org>
Wed, 5 Aug 2009 18:13:04 +0000 (18:13 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Wed, 5 Aug 2009 18:13:04 +0000 (18:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78220 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaISelLowering.cpp

index f3f90cf6c327e0d30b741a0222d358375e8ff5ee..79b3765d20643651e0b56a0841133e92e44a6590 100644 (file)
 #include "llvm/Support/raw_ostream.h"
 using namespace llvm;
 
-namespace {
-class TargetLoweringObjectFileAlpha : public TargetLoweringObjectFile {
-public:
-  void Initialize(MCContext &Ctx, const TargetMachine &TM) {
-    TargetLoweringObjectFile::Initialize(Ctx, TM);
-    TextSection = getOrCreateSection(".text", true, 
-                                     SectionKind::getText());
-    DataSection = getOrCreateSection(".data", true, 
-                                     SectionKind::getDataRel());
-    ReadOnlySection = getOrCreateSection(".rodata", true, 
-                                         SectionKind::getReadOnly());
-  }
-};
-}
-  
-  
-
 /// AddLiveIn - This helper function adds the specified physical register to the
 /// MachineFunction as a live in value.  It also creates a corresponding virtual
 /// register for it.
@@ -60,7 +43,7 @@ static unsigned AddLiveIn(MachineFunction &MF, unsigned PReg,
 }
 
 AlphaTargetLowering::AlphaTargetLowering(TargetMachine &TM)
-  : TargetLowering(TM, new TargetLoweringObjectFileAlpha()) {
+  : TargetLowering(TM, new TargetLoweringObjectFileELF()) {
   // Set up the TargetLowering object.
   //I am having problems with shr n i8 1
   setShiftAmountType(MVT::i64);