summaryrefslogtreecommitdiffstats
path: root/tools/llvm-nm
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-12-25 01:20:19 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-12-25 01:20:19 +0000
commitaba65b05fc5dd8649725431e38359b7fa1ab59e8 (patch)
tree3f4799a1e1db009a997ddd9bdf1849c67e6d8e46 /tools/llvm-nm
parentd62414c6547b4626bd7e4933c361f5275a6e2714 (diff)
downloadexternal_llvm-aba65b05fc5dd8649725431e38359b7fa1ab59e8.zip
external_llvm-aba65b05fc5dd8649725431e38359b7fa1ab59e8.tar.gz
external_llvm-aba65b05fc5dd8649725431e38359b7fa1ab59e8.tar.bz2
Remove unused variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-nm')
-rw-r--r--tools/llvm-nm/llvm-nm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp
index 3e159c7..13356f8 100644
--- a/tools/llvm-nm/llvm-nm.cpp
+++ b/tools/llvm-nm/llvm-nm.cpp
@@ -335,7 +335,7 @@ static void DumpSymbolNamesFromFile(std::string &Filename) {
for (object::Archive::child_iterator i = a->begin_children(),
e = a->end_children(); i != e; ++i) {
OwningPtr<Binary> child;
- if (error_code ec = i->getAsBinary(child)) {
+ if (i->getAsBinary(child)) {
// Try opening it as a bitcode file.
OwningPtr<MemoryBuffer> buff(i->getBuffer());
Module *Result = 0;