[llvm-commits] [llvm] r92183 - /llvm/trunk/tools/llvm-mc/AsmParser.cpp

Bill Wendling isanbard at gmail.com
Sun Dec 27 17:34:58 PST 2009


Author: void
Date: Sun Dec 27 19:34:57 2009
New Revision: 92183

URL: http://llvm.org/viewvc/llvm-project?rev=92183&view=rev
Log:
Mark some debug variables as 'unused' to quiet compiler and analyzer.

Modified:
    llvm/trunk/tools/llvm-mc/AsmParser.cpp

Modified: llvm/trunk/tools/llvm-mc/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mc/AsmParser.cpp?rev=92183&r1=92182&r2=92183&view=diff

==============================================================================
--- llvm/trunk/tools/llvm-mc/AsmParser.cpp (original)
+++ llvm/trunk/tools/llvm-mc/AsmParser.cpp Sun Dec 27 19:34:57 2009
@@ -22,6 +22,7 @@
 #include "llvm/MC/MCStreamer.h"
 #include "llvm/MC/MCSymbol.h"
 #include "llvm/MC/MCValue.h"
+#include "llvm/Support/Compiler.h"
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Target/TargetAsmParser.h"
@@ -963,7 +964,7 @@
   if (Lexer.isNot(AsmToken::EndOfStatement)) {
     for (;;) {
       const MCExpr *Value;
-      SMLoc StartLoc = Lexer.getLoc();
+      SMLoc ATTRIBUTE_UNUSED StartLoc = Lexer.getLoc();
       if (ParseExpression(Value))
         return true;
 
@@ -1631,7 +1632,7 @@
   if (Lexer.isNot(AsmToken::String))
     return TokError("unexpected token in '.file' directive");
   
-  StringRef FileName = Lexer.getTok().getString();
+  StringRef ATTRIBUTE_UNUSED FileName = Lexer.getTok().getString();
   Lexer.Lex();
 
   if (Lexer.isNot(AsmToken::EndOfStatement))





More information about the llvm-commits mailing list