diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2009-08-05 18:13:04 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2009-08-05 18:13:04 +0000 |
commit | 13937d8236d327d7ad1b8403a56cdbe433ef71bf (patch) | |
tree | 834d263062f423db7dc79036d503e4afc407300c /llvm/lib/Target/Alpha/AlphaISelLowering.cpp | |
parent | 4cc1feff4f01388fef617e07390f0ab2afa5c366 (diff) | |
download | bcm5719-llvm-13937d8236d327d7ad1b8403a56cdbe433ef71bf.tar.gz bcm5719-llvm-13937d8236d327d7ad1b8403a56cdbe433ef71bf.zip |
Use elf Object File directly
llvm-svn: 78220
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/Alpha/AlphaISelLowering.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp index f3f90cf6c32..79b3765d206 100644 --- a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp +++ b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp @@ -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 @@ 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); |