diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-31 20:57:12 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-31 20:57:12 +0000 |
commit | d8324e6983d06c3d56debcbfdc9ead0e0d4a817d (patch) | |
tree | f50eaaa3e9f03b323aab113dc92b2bc77756d2f3 /tools/llvm-objdump | |
parent | c2c98e78842b364df35a34639f217339e0bc5118 (diff) | |
download | llvm-d8324e6983d06c3d56debcbfdc9ead0e0d4a817d.tar.gz llvm-d8324e6983d06c3d56debcbfdc9ead0e0d4a817d.tar.bz2 llvm-d8324e6983d06c3d56debcbfdc9ead0e0d4a817d.tar.xz |
Simplify getSymbolFlags.
None of the object formats require extra parsing to compute these flags,
so the method cannot fail.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-objdump')
-rw-r--r-- | tools/llvm-objdump/llvm-objdump.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/llvm-objdump/llvm-objdump.cpp b/tools/llvm-objdump/llvm-objdump.cpp index 325e7006ed..4572c96548 100644 --- a/tools/llvm-objdump/llvm-objdump.cpp +++ b/tools/llvm-objdump/llvm-objdump.cpp @@ -702,11 +702,10 @@ static void PrintSymbolTable(const ObjectFile *o) { uint64_t Address; SymbolRef::Type Type; uint64_t Size; - uint32_t Flags; + uint32_t Flags = si->getFlags(); section_iterator Section = o->end_sections(); if (error(si->getName(Name))) continue; if (error(si->getAddress(Address))) continue; - if (error(si->getFlags(Flags))) continue; if (error(si->getType(Type))) continue; if (error(si->getSize(Size))) continue; if (error(si->getSection(Section))) continue; |