Remove remaining uses of ATTRIBUTE_UNUSED on variables, and delete three
authorChandler Carruth <chandlerc@gmail.com>
Wed, 20 Oct 2010 08:27:02 +0000 (08:27 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 20 Oct 2010 08:27:02 +0000 (08:27 +0000)
#includes in the process.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116919 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCParser/AsmParser.cpp
lib/System/RWMutex.cpp
lib/Target/ARM/AsmParser/ARMAsmParser.cpp

index 6a5d7697aed615b7296f7b731b031a9c52dd49e1..5e90898134f63f7b1a5e3d09d5eb85e964088192 100644 (file)
@@ -27,7 +27,6 @@
 #include "llvm/MC/MCStreamer.h"
 #include "llvm/MC/MCSymbol.h"
 #include "llvm/MC/MCDwarf.h"
-#include "llvm/Support/Compiler.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/raw_ostream.h"
@@ -1386,7 +1385,6 @@ bool AsmParser::ParseDirectiveValue(unsigned Size) {
 
     for (;;) {
       const MCExpr *Value;
-      SMLoc ATTRIBUTE_UNUSED StartLoc = getLexer().getLoc();
       if (ParseExpression(Value))
         return true;
 
index be41ee6847d22e24d3174ff660c2429aec66cef5..deb04709d829c6e5c2910ea336e2d6a214052603 100644 (file)
@@ -12,7 +12,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Config/config.h"
-#include "llvm/Support/Compiler.h"
 #include "llvm/System/RWMutex.h"
 #include <cstring>
 
@@ -73,7 +72,8 @@ RWMutexImpl::RWMutexImpl()
 #endif
 
     // Initialize the rwlock
-    int ATTRIBUTE_UNUSED errorcode = pthread_rwlock_init(rwlock, NULL);
+    int errorcode = pthread_rwlock_init(rwlock, NULL);
+    (void)errorcode;
     assert(errorcode == 0);
 
     // Assign the data member
index 95b57f3471609f0f4420014344f7b859cfc59915..c9597fb5e4007433ac0fa35445ff1eb1269bf840 100644 (file)
@@ -17,7 +17,6 @@
 #include "llvm/MC/MCInst.h"
 #include "llvm/Target/TargetRegistry.h"
 #include "llvm/Target/TargetAsmParser.h"
-#include "llvm/Support/Compiler.h"
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/ADT/OwningPtr.h"
@@ -814,7 +813,6 @@ bool ARMAsmParser::ParseDirectiveThumbFunc(SMLoc L) {
   const AsmToken &Tok = Parser.getTok();
   if (Tok.isNot(AsmToken::Identifier) && Tok.isNot(AsmToken::String))
     return Error(L, "unexpected token in .syntax directive");
-  StringRef ATTRIBUTE_UNUSED SymbolName = Parser.getTok().getIdentifier();
   Parser.Lex(); // Consume the identifier token.
 
   if (getLexer().isNot(AsmToken::EndOfStatement))