diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-12-28 01:34:57 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-12-28 01:34:57 +0000 |
commit | 9bc0af847d72e895fbc42b7a2d17fde33c6a5a66 (patch) | |
tree | df37d315490e3f9228652970100d951b1f9b9428 /tools | |
parent | ce90c245ffee6fbd7cb569a6a53682feb12d5983 (diff) | |
download | llvm-9bc0af847d72e895fbc42b7a2d17fde33c6a5a66.tar.gz llvm-9bc0af847d72e895fbc42b7a2d17fde33c6a5a66.tar.bz2 llvm-9bc0af847d72e895fbc42b7a2d17fde33c6a5a66.tar.xz |
Mark some debug variables as 'unused' to quiet compiler and analyzer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92183 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-mc/AsmParser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/llvm-mc/AsmParser.cpp b/tools/llvm-mc/AsmParser.cpp index 436f17d423..1204a0054a 100644 --- a/tools/llvm-mc/AsmParser.cpp +++ b/tools/llvm-mc/AsmParser.cpp @@ -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 @@ bool AsmParser::ParseDirectiveValue(unsigned Size) { 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 @@ bool AsmParser::ParseDirectiveFile(StringRef, SMLoc DirectiveLoc) { 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)) |