projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid warning about unused variable when building without assertions.
[oota-llvm.git]
/
include
/
llvm
/
Object
/
ELFObjectFile.h
diff --git
a/include/llvm/Object/ELFObjectFile.h
b/include/llvm/Object/ELFObjectFile.h
index 4966983822cbe80607a846a05595d8b69958a88b..5b9b113a2f0b7048ac06850659c135683f1efbce 100644
(file)
--- a/
include/llvm/Object/ELFObjectFile.h
+++ b/
include/llvm/Object/ELFObjectFile.h
@@
-254,8
+254,8
@@
protected:
DRI.d.b = 0;
return DRI;
}
DRI.d.b = 0;
return DRI;
}
- uint32_t Type = SymTable->sh_type;
-
assert(Type == ELF::SHT_SYMTAB || T
ype == ELF::SHT_DYNSYM);
+ assert(SymTable->sh_type == ELF::SHT_SYMTAB ||
+
SymTable->sh_t
ype == ELF::SHT_DYNSYM);
uintptr_t SHT = reinterpret_cast<uintptr_t>(EF.section_begin());
unsigned SymTableIndex =
uintptr_t SHT = reinterpret_cast<uintptr_t>(EF.section_begin());
unsigned SymTableIndex =