summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/UnwrappedLineParser.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-09-05 16:05:56 +0000
committerDaniel Jasper <djasper@google.com>2013-09-05 16:05:56 +0000
commit3b203a65c2fb1fc1fdd2611ecc3cb5afeb5de817 (patch)
treef6f3890afbe27298ea48cedd3d05c7e0a08771a1 /clang/lib/Format/UnwrappedLineParser.cpp
parentc209d6aa3e6cae03a7241cc8a489b9d6e0e87117 (diff)
downloadbcm5719-llvm-3b203a65c2fb1fc1fdd2611ecc3cb5afeb5de817.tar.gz
bcm5719-llvm-3b203a65c2fb1fc1fdd2611ecc3cb5afeb5de817.zip
Add ATTRIBUTE_UNUSED to silence unused-function warning in release
builds. llvm-svn: 190061
Diffstat (limited to 'clang/lib/Format/UnwrappedLineParser.cpp')
-rw-r--r--clang/lib/Format/UnwrappedLineParser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Format/UnwrappedLineParser.cpp b/clang/lib/Format/UnwrappedLineParser.cpp
index 766e1d8d922..814ccf42a88 100644
--- a/clang/lib/Format/UnwrappedLineParser.cpp
+++ b/clang/lib/Format/UnwrappedLineParser.cpp
@@ -1201,7 +1201,8 @@ void UnwrappedLineParser::parseObjCProtocol() {
parseObjCUntilAtEnd();
}
-static void printDebugInfo(const UnwrappedLine &Line, StringRef Prefix = "") {
+LLVM_ATTRIBUTE_UNUSED static void printDebugInfo(const UnwrappedLine &Line,
+ StringRef Prefix = "") {
llvm::dbgs() << Prefix << "Line(" << Line.Level << ")"
<< (Line.InPPDirective ? " MACRO" : "") << ": ";
for (std::list<UnwrappedLineNode>::const_iterator I = Line.Tokens.begin(),
OpenPOWER on IntegriCloud