r224430 - Exclude printLineState() in -Asserts. [-Wunused-function]

NAKAMURA Takumi geek4civic at gmail.com
Wed Dec 17 06:46:58 PST 2014


Author: chapuni
Date: Wed Dec 17 08:46:56 2014
New Revision: 224430

URL: http://llvm.org/viewvc/llvm-project?rev=224430&view=rev
Log:
Exclude printLineState() in -Asserts. [-Wunused-function]

Modified:
    cfe/trunk/lib/Format/UnwrappedLineFormatter.cpp

Modified: cfe/trunk/lib/Format/UnwrappedLineFormatter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/UnwrappedLineFormatter.cpp?rev=224430&r1=224429&r2=224430&view=diff
==============================================================================
--- cfe/trunk/lib/Format/UnwrappedLineFormatter.cpp (original)
+++ cfe/trunk/lib/Format/UnwrappedLineFormatter.cpp Wed Dec 17 08:46:56 2014
@@ -593,6 +593,7 @@ unsigned UnwrappedLineFormatter::analyze
   return Penalty;
 }
 
+#ifndef NDEBUG
 static void printLineState(const LineState &State) {
   llvm::dbgs() << "State: ";
   for (const ParenState &P : State.Stack) {
@@ -601,6 +602,7 @@ static void printLineState(const LineSta
   }
   llvm::dbgs() << State.NextToken->TokenText << "\n";
 }
+#endif
 
 void UnwrappedLineFormatter::reconstructPath(LineState &State,
                                              StateNode *Current) {





More information about the cfe-commits mailing list