Add ATTRIBUTE_UNUSED to silence unused-function warning in release
authorDaniel Jasper <djasper@google.com>
Thu, 5 Sep 2013 16:05:56 +0000 (16:05 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 5 Sep 2013 16:05:56 +0000 (16:05 +0000)
builds.

llvm-svn: 190061

clang/lib/Format/UnwrappedLineParser.cpp

index 766e1d8..814ccf4 100644 (file)
@@ -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(),