From: David Blaikie Date: Fri, 11 Apr 2014 22:11:50 +0000 (+0000) Subject: Format fixes for r205990 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0f6d8c6c8dcb0401eb34adf6806a13add6243918;p=oota-llvm.git Format fixes for r205990 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206078 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/MC/MCSectionELF.h b/include/llvm/MC/MCSectionELF.h index c161c8bf4bf..b91cea5c99f 100644 --- a/include/llvm/MC/MCSectionELF.h +++ b/include/llvm/MC/MCSectionELF.h @@ -55,6 +55,7 @@ private: ~MCSectionELF(); void setSectionName(StringRef Name) { SectionName = Name; } + public: /// ShouldOmitSectionDirective - Decides whether a '.section' directive diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp index cd92b75a7f0..ab642f873c9 100644 --- a/lib/MC/ELFObjectWriter.cpp +++ b/lib/MC/ELFObjectWriter.cpp @@ -1179,7 +1179,9 @@ void ELFObjectWriter::CreateRelocationSections(MCAssembler &Asm, } } -static SmallVector getUncompressedData(MCAsmLayout &Layout, MCSectionData::FragmentListType &Fragments) { +static SmallVector +getUncompressedData(MCAsmLayout &Layout, + MCSectionData::FragmentListType &Fragments) { SmallVector UncompressedData; for (const MCFragment &F : Fragments) { const SmallVectorImpl *Contents; @@ -1205,7 +1207,9 @@ static SmallVector getUncompressedData(MCAsmLayout &Layout, MCSection // Include the debug info compression header: // "ZLIB" followed by 8 bytes representing the uncompressed size of the section, // useful for consumers to preallocate a buffer to decompress into. -static void prependCompressionHeader(uint64_t Size, SmallVectorImpl &CompressedContents) { +static void +prependCompressionHeader(uint64_t Size, + SmallVectorImpl &CompressedContents) { static const StringRef Magic = "ZLIB"; if (sys::IsLittleEndianHost) Size = sys::SwapByteOrder(Size); @@ -1219,7 +1223,9 @@ static void prependCompressionHeader(uint64_t Size, SmallVectorImpl &Compr // Return a single fragment containing the compressed contents of the whole // section. Null if the section was not compressed for any reason. -static std::unique_ptr getCompressedFragment(MCAsmLayout &Layout, MCSectionData::FragmentListType &Fragments) { +static std::unique_ptr +getCompressedFragment(MCAsmLayout &Layout, + MCSectionData::FragmentListType &Fragments) { std::unique_ptr CompressedFragment(new MCDataFragment()); // Gather the uncompressed data from all the fragments, recording the @@ -1274,7 +1280,8 @@ void ELFObjectWriter::CompressDebugSections(MCAssembler &Asm, return; for (MCSectionData &SD : Asm) { - const MCSectionELF &Section = static_cast(SD.getSection()); + const MCSectionELF &Section = + static_cast(SD.getSection()); StringRef SectionName = Section.getSectionName(); // Compressing debug_frame requires handling alignment fragments which is @@ -1771,7 +1778,7 @@ void ELFObjectWriter::WriteObject(MCAssembler &Asm, unsigned NumUserSections = Asm.size(); - CompressDebugSections(Asm, const_cast(Layout)); + CompressDebugSections(Asm, const_cast(Layout)); DenseMap RelMap; CreateRelocationSections(Asm, const_cast(Layout), RelMap);