r190061 - Add ATTRIBUTE_UNUSED to silence unused-function warning in release
Daniel Jasper
djasper at google.com
Thu Sep 5 09:05:56 PDT 2013
Author: djasper
Date: Thu Sep 5 11:05:56 2013
New Revision: 190061
URL: http://llvm.org/viewvc/llvm-project?rev=190061&view=rev
Log:
Add ATTRIBUTE_UNUSED to silence unused-function warning in release
builds.
Modified:
cfe/trunk/lib/Format/UnwrappedLineParser.cpp
Modified: cfe/trunk/lib/Format/UnwrappedLineParser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/UnwrappedLineParser.cpp?rev=190061&r1=190060&r2=190061&view=diff
==============================================================================
--- cfe/trunk/lib/Format/UnwrappedLineParser.cpp (original)
+++ cfe/trunk/lib/Format/UnwrappedLineParser.cpp Thu Sep 5 11:05:56 2013
@@ -1201,7 +1201,8 @@ void UnwrappedLineParser::parseObjCProto
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(),
More information about the cfe-commits
mailing list