summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-12-17 14:46:56 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-12-17 14:46:56 +0000
commite9ac8b4d63772289347fc69af8d393096712a89b (patch)
tree5c2ea65fd7200e9e19aa0472048b789914fb351c /clang/lib/Format
parent047b1a0400fe75e5d6017c287383153beb5f29eb (diff)
downloadbcm5719-llvm-e9ac8b4d63772289347fc69af8d393096712a89b.tar.gz
bcm5719-llvm-e9ac8b4d63772289347fc69af8d393096712a89b.zip
Exclude printLineState() in -Asserts. [-Wunused-function]
llvm-svn: 224430
Diffstat (limited to 'clang/lib/Format')
-rw-r--r--clang/lib/Format/UnwrappedLineFormatter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Format/UnwrappedLineFormatter.cpp b/clang/lib/Format/UnwrappedLineFormatter.cpp
index 56feaf6e54e..ca66e735164 100644
--- a/clang/lib/Format/UnwrappedLineFormatter.cpp
+++ b/clang/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) {
OpenPOWER on IntegriCloud