diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-10-20 08:27:02 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-10-20 08:27:02 +0000 |
commit | 1898262a33647cfefde7dcae5e74072deaa1eccb (patch) | |
tree | aa5ccc25fa8d2633987fd9fbb3053803d56ed821 /llvm/lib | |
parent | c7b34694ff4bb40ec81ee74b07c3a3b0c8bdb250 (diff) | |
download | bcm5719-llvm-1898262a33647cfefde7dcae5e74072deaa1eccb.tar.gz bcm5719-llvm-1898262a33647cfefde7dcae5e74072deaa1eccb.zip |
Remove remaining uses of ATTRIBUTE_UNUSED on variables, and delete three
#includes in the process.
llvm-svn: 116919
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/MC/MCParser/AsmParser.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/System/RWMutex.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 2 |
3 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index 6a5d7697aed..5e90898134f 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/lib/MC/MCParser/AsmParser.cpp @@ -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; diff --git a/llvm/lib/System/RWMutex.cpp b/llvm/lib/System/RWMutex.cpp index be41ee6847d..deb04709d82 100644 --- a/llvm/lib/System/RWMutex.cpp +++ b/llvm/lib/System/RWMutex.cpp @@ -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 diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 95b57f34716..c9597fb5e40 100644 --- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -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)) |