From b02130444e24e59c18f455d60652152570320372 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 17 Dec 2014 14:46:56 +0000 Subject: [PATCH] Exclude printLineState() in -Asserts. [-Wunused-function] git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224430 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Format/UnwrappedLineFormatter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Format/UnwrappedLineFormatter.cpp b/lib/Format/UnwrappedLineFormatter.cpp index 56feaf6e54..ca66e73516 100644 --- a/lib/Format/UnwrappedLineFormatter.cpp +++ b/lib/Format/UnwrappedLineFormatter.cpp @@ -593,6 +593,7 @@ unsigned UnwrappedLineFormatter::analyzeSolutionSpace(LineState &InitialState, 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 LineState &State) { } llvm::dbgs() << State.NextToken->TokenText << "\n"; } +#endif void UnwrappedLineFormatter::reconstructPath(LineState &State, StateNode *Current) { -- 2.40.0