[lld] r253620 - Fix formatting.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 19 15:30:10 PST 2015


Author: ruiu
Date: Thu Nov 19 17:30:10 2015
New Revision: 253620

URL: http://llvm.org/viewvc/llvm-project?rev=253620&view=rev
Log:
Fix formatting.

Modified:
    lld/trunk/ELF/OutputSections.cpp

Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=253620&r1=253619&r2=253620&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Thu Nov 19 17:30:10 2015
@@ -658,16 +658,15 @@ template <class ELFT> void DynamicSectio
   if (Out<ELFT>::HashTab)
     WritePtr(DT_HASH, Out<ELFT>::HashTab->getVA());
 
+  // If --enable-new-dtags is set, lld emits DT_RUNPATH
+  // instead of DT_RPATH. The two tags are functionally
+  // equivalent except for the following:
+  // - DT_RUNPATH is searched after LD_LIBRARY_PATH, while
+  //   DT_RPATH is searched before.
+  // - DT_RUNPATH is used only to search for direct
+  //   dependencies of the object it's contained in, while
+  //   DT_RPATH is used for indirect dependencies as well.
   if (!Config->RPath.empty())
-
-    // If --enable-new-dtags is set lld emits DT_RUNPATH
-    // instead of DT_RPATH. The two tags are functionally
-    // equivalent except for the following:
-    // - DT_RUNPATH is searched after LD_LIBRARY_PATH, while
-    // DT_RPATH is searched before.
-    // - DT_RUNPATH is used only to search for direct
-    // dependencies of the object it's contained in, while
-    // DT_RPATH is used for indirect dependencies as well.
     WriteVal(Config->EnableNewDtags ? DT_RUNPATH : DT_RPATH,
              Out<ELFT>::DynStrTab->getOffset(Config->RPath));
 




More information about the llvm-commits mailing list