From 78f46bea080a3a0bb1f93a19fafeb866ee8c0718 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Sun, 21 Feb 2016 01:40:04 +0000 Subject: Unbreak non-X86 targets from fallout caused by r261462 llvm-svn: 261463 --- llvm/lib/Target/Mips/MipsTargetObjectFile.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Target/Mips/MipsTargetObjectFile.cpp') diff --git a/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp b/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp index e83abdd2a8c..3bd4567e379 100644 --- a/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp +++ b/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp @@ -140,11 +140,13 @@ bool MipsTargetObjectFile::IsConstantInSmallSection( } /// Return true if this constant should be placed into small data section. -MCSection *MipsTargetObjectFile::getSectionForConstant( - const DataLayout &DL, SectionKind Kind, const Constant *C) const { +MCSection *MipsTargetObjectFile::getSectionForConstant(const DataLayout &DL, + SectionKind Kind, + const Constant *C, + unsigned &Align) const { if (IsConstantInSmallSection(DL, C, *TM)) return SmallDataSection; // Otherwise, we work the same as ELF. - return TargetLoweringObjectFileELF::getSectionForConstant(DL, Kind, C); + return TargetLoweringObjectFileELF::getSectionForConstant(DL, Kind, C, Align); } -- cgit v1.2.3