[lld] r196716 - Fix -Wunused-function to unbreak buildbot.

Rui Ueyama ruiu at google.com
Sat Dec 7 19:37:58 PST 2013


Author: ruiu
Date: Sat Dec  7 21:37:58 2013
New Revision: 196716

URL: http://llvm.org/viewvc/llvm-project?rev=196716&view=rev
Log:
Fix -Wunused-function to unbreak buildbot.

Modified:
    lld/trunk/lib/Passes/LayoutPass.cpp

Modified: lld/trunk/lib/Passes/LayoutPass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Passes/LayoutPass.cpp?rev=196716&r1=196715&r2=196716&view=diff
==============================================================================
--- lld/trunk/lib/Passes/LayoutPass.cpp (original)
+++ lld/trunk/lib/Passes/LayoutPass.cpp Sat Dec  7 21:37:58 2013
@@ -23,6 +23,7 @@ using namespace lld;
 static bool compareAtoms(const LayoutPass::SortKey &,
                          const LayoutPass::SortKey &);
 
+#ifndef NDEBUG
 // Return "reason (leftval, rightval)"
 static std::string formatReason(StringRef reason, int leftVal, int rightVal) {
   Twine msg =
@@ -41,6 +42,7 @@ static void checkTransitivity(std::vecto
     }
   }
 }
+#endif // #ifndef NDEBUG
 
 /// The function compares atoms by sorting atoms in the following order
 /// a) Sorts atoms by Section position preference





More information about the llvm-commits mailing list