[llvm-commits] [llvm] r78220 - /llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp

Andrew Lenharth alenhar2 at cs.uiuc.edu
Wed Aug 5 11:13:05 PDT 2009


Author: alenhar2
Date: Wed Aug  5 13:13:04 2009
New Revision: 78220

URL: http://llvm.org/viewvc/llvm-project?rev=78220&view=rev
Log:
Use elf Object File directly

Modified:
    llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp

Modified: llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp?rev=78220&r1=78219&r2=78220&view=diff

==============================================================================
--- llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp Wed Aug  5 13:13:04 2009
@@ -31,23 +31,6 @@
 #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 @@
 }
 
 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);





More information about the llvm-commits mailing list