summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/MBlaze/MBlazeTargetObjectFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-01-23 04:28:49 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-01-23 04:28:49 +0000
commitaea4958ea6acd5d5820149cc76dae57a1f2c5c12 (patch)
tree574d5e614651a478f6a3fede73b50d1b51037526 /llvm/lib/Target/MBlaze/MBlazeTargetObjectFile.cpp
parenta914bed8006a754ce36ccb00860bd944ca8807ae (diff)
downloadbcm5719-llvm-aea4958ea6acd5d5820149cc76dae57a1f2c5c12.tar.gz
bcm5719-llvm-aea4958ea6acd5d5820149cc76dae57a1f2c5c12.zip
Remove duplicated code.
llvm-svn: 124054
Diffstat (limited to 'llvm/lib/Target/MBlaze/MBlazeTargetObjectFile.cpp')
-rw-r--r--llvm/lib/Target/MBlaze/MBlazeTargetObjectFile.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/MBlaze/MBlazeTargetObjectFile.cpp b/llvm/lib/Target/MBlaze/MBlazeTargetObjectFile.cpp
index 05c01ef7a5d..a9c152dc95c 100644
--- a/llvm/lib/Target/MBlaze/MBlazeTargetObjectFile.cpp
+++ b/llvm/lib/Target/MBlaze/MBlazeTargetObjectFile.cpp
@@ -16,6 +16,7 @@
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/ELF.h"
using namespace llvm;
void MBlazeTargetObjectFile::
@@ -23,12 +24,12 @@ Initialize(MCContext &Ctx, const TargetMachine &TM) {
TargetLoweringObjectFileELF::Initialize(Ctx, TM);
SmallDataSection =
- getContext().getELFSection(".sdata", MCSectionELF::SHT_PROGBITS,
+ getContext().getELFSection(".sdata", ELF::SHT_PROGBITS,
MCSectionELF::SHF_WRITE |MCSectionELF::SHF_ALLOC,
SectionKind::getDataRel());
SmallBSSSection =
- getContext().getELFSection(".sbss", MCSectionELF::SHT_NOBITS,
+ getContext().getELFSection(".sbss", ELF::SHT_NOBITS,
MCSectionELF::SHF_WRITE |MCSectionELF::SHF_ALLOC,
SectionKind::getBSS());
OpenPOWER on IntegriCloud