summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp
diff options
context:
space:
mode:
authorLogan Chien <tzuhsiang.chien@gmail.com>2012-09-05 06:17:17 +0000
committerLogan Chien <tzuhsiang.chien@gmail.com>2012-09-05 06:17:17 +0000
commiteeaaf65cb613a6b831ffdfe9eac234e80459ea0d (patch)
treeb8592007b15115d832a0466b2fccc9dbfb3a1e73 /llvm/lib/Target/Mips/MipsTargetObjectFile.cpp
parent2db2353b21927853839406a2e8cc00d3ae234f7f (diff)
downloadbcm5719-llvm-eeaaf65cb613a6b831ffdfe9eac234e80459ea0d.tar.gz
bcm5719-llvm-eeaaf65cb613a6b831ffdfe9eac234e80459ea0d.zip
Fix UseInitArray option for MIPS target.
llvm-svn: 163193
Diffstat (limited to 'llvm/lib/Target/Mips/MipsTargetObjectFile.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsTargetObjectFile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp b/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp
index a7fb454512e..1f5e34f82c9 100644
--- a/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp
+++ b/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp
@@ -26,6 +26,7 @@ SSThreshold("mips-ssection-threshold", cl::Hidden,
void MipsTargetObjectFile::Initialize(MCContext &Ctx, const TargetMachine &TM){
TargetLoweringObjectFileELF::Initialize(Ctx, TM);
+ InitializeELF(TM.Options.UseInitArray);
SmallDataSection =
getContext().getELFSection(".sdata", ELF::SHT_PROGBITS,
OpenPOWER on IntegriCloud