[llvm-commits] [llvm] r116919 - in /llvm/trunk/lib: MC/MCParser/AsmParser.cpp System/RWMutex.cpp Target/ARM/AsmParser/ARMAsmParser.cpp
Chandler Carruth
chandlerc at gmail.com
Wed Oct 20 01:27:02 PDT 2010
Author: chandlerc
Date: Wed Oct 20 03:27:02 2010
New Revision: 116919
URL: http://llvm.org/viewvc/llvm-project?rev=116919&view=rev
Log:
Remove remaining uses of ATTRIBUTE_UNUSED on variables, and delete three
#includes in the process.
Modified:
llvm/trunk/lib/MC/MCParser/AsmParser.cpp
llvm/trunk/lib/System/RWMutex.cpp
llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=116919&r1=116918&r2=116919&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Wed Oct 20 03:27:02 2010
@@ -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 @@
for (;;) {
const MCExpr *Value;
- SMLoc ATTRIBUTE_UNUSED StartLoc = getLexer().getLoc();
if (ParseExpression(Value))
return true;
Modified: llvm/trunk/lib/System/RWMutex.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/RWMutex.cpp?rev=116919&r1=116918&r2=116919&view=diff
==============================================================================
--- llvm/trunk/lib/System/RWMutex.cpp (original)
+++ llvm/trunk/lib/System/RWMutex.cpp Wed Oct 20 03:27:02 2010
@@ -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 @@
#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
Modified: llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp?rev=116919&r1=116918&r2=116919&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp Wed Oct 20 03:27:02 2010
@@ -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 @@
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))
More information about the llvm-commits
mailing list