[llvm] r206078 - Format fixes for r205990

David Blaikie dblaikie at gmail.com
Fri Apr 11 15:11:51 PDT 2014


Author: dblaikie
Date: Fri Apr 11 17:11:50 2014
New Revision: 206078

URL: http://llvm.org/viewvc/llvm-project?rev=206078&view=rev
Log:
Format fixes for r205990

Modified:
    llvm/trunk/include/llvm/MC/MCSectionELF.h
    llvm/trunk/lib/MC/ELFObjectWriter.cpp

Modified: llvm/trunk/include/llvm/MC/MCSectionELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCSectionELF.h?rev=206078&r1=206077&r2=206078&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCSectionELF.h (original)
+++ llvm/trunk/include/llvm/MC/MCSectionELF.h Fri Apr 11 17:11:50 2014
@@ -55,6 +55,7 @@ private:
   ~MCSectionELF();
 
   void setSectionName(StringRef Name) { SectionName = Name; }
+
 public:
 
   /// ShouldOmitSectionDirective - Decides whether a '.section' directive

Modified: llvm/trunk/lib/MC/ELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ELFObjectWriter.cpp?rev=206078&r1=206077&r2=206078&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Fri Apr 11 17:11:50 2014
@@ -1179,7 +1179,9 @@ void ELFObjectWriter::CreateRelocationSe
   }
 }
 
-static SmallVector<char, 128> getUncompressedData(MCAsmLayout &Layout, MCSectionData::FragmentListType &Fragments) {
+static SmallVector<char, 128>
+getUncompressedData(MCAsmLayout &Layout,
+                    MCSectionData::FragmentListType &Fragments) {
   SmallVector<char, 128> UncompressedData;
   for (const MCFragment &F : Fragments) {
     const SmallVectorImpl<char> *Contents;
@@ -1205,7 +1207,9 @@ static SmallVector<char, 128> getUncompr
 // 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<char> &CompressedContents) {
+static void
+prependCompressionHeader(uint64_t Size,
+                         SmallVectorImpl<char> &CompressedContents) {
   static const StringRef Magic = "ZLIB";
   if (sys::IsLittleEndianHost)
     Size = sys::SwapByteOrder(Size);
@@ -1219,7 +1223,9 @@ static void prependCompressionHeader(uin
 
 // 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<MCDataFragment> getCompressedFragment(MCAsmLayout &Layout, MCSectionData::FragmentListType &Fragments) {
+static std::unique_ptr<MCDataFragment>
+getCompressedFragment(MCAsmLayout &Layout,
+                      MCSectionData::FragmentListType &Fragments) {
   std::unique_ptr<MCDataFragment> CompressedFragment(new MCDataFragment());
 
   // Gather the uncompressed data from all the fragments, recording the
@@ -1274,7 +1280,8 @@ void ELFObjectWriter::CompressDebugSecti
     return;
 
   for (MCSectionData &SD : Asm) {
-    const MCSectionELF &Section = static_cast<const MCSectionELF&>(SD.getSection());
+    const MCSectionELF &Section =
+        static_cast<const MCSectionELF &>(SD.getSection());
     StringRef SectionName = Section.getSectionName();
 
     // Compressing debug_frame requires handling alignment fragments which is
@@ -1771,7 +1778,7 @@ void ELFObjectWriter::WriteObject(MCAsse
 
   unsigned NumUserSections = Asm.size();
 
-  CompressDebugSections(Asm, const_cast<MCAsmLayout&>(Layout));
+  CompressDebugSections(Asm, const_cast<MCAsmLayout &>(Layout));
 
   DenseMap<const MCSectionELF*, const MCSectionELF*> RelMap;
   CreateRelocationSections(Asm, const_cast<MCAsmLayout&>(Layout), RelMap);





More information about the llvm-commits mailing list