Add ATTRIBUTE_UNUSED to silence unused-function warning in release

builds.

llvm-svn: 190061
This commit is contained in:
Daniel Jasper 2013-09-05 16:05:56 +00:00
parent c209d6aa3e
commit 3b203a65c2
1 changed files with 2 additions and 1 deletions

View 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(),