diff options
author | Vlad Tsyrklevich <vlad@tsyrklevich.net> | 2019-06-07 18:55:12 +0000 |
---|---|---|
committer | Vlad Tsyrklevich <vlad@tsyrklevich.net> | 2019-06-07 18:55:12 +0000 |
commit | e67f6206ac377eff737758354370296780850028 (patch) | |
tree | 9f44081fb4104541515450c70310201d19d5ed06 /llvm/tools/llvm-objdump | |
parent | f0240ee76d57eb6f6bd3e8b7d06544b100f46bdc (diff) | |
download | bcm5719-llvm-e67f6206ac377eff737758354370296780850028.tar.gz bcm5719-llvm-e67f6206ac377eff737758354370296780850028.zip |
Revert "[llvm-objdump] Add warning if --disassemble-functions specifies an unknown symbol"
This reverts commit 50f61af3f304a03f10d9ecb0828829f0a72d0099, it used
the function introduced in the previous revert of
0bddef79019a23ab14fcdb27028e55e484674c88.
llvm-svn: 362826
Diffstat (limited to 'llvm/tools/llvm-objdump')
-rw-r--r-- | llvm/tools/llvm-objdump/llvm-objdump.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp index bbd65d9a9a7..8d9001170b8 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -18,7 +18,6 @@ #include "llvm-objdump.h" #include "llvm/ADT/Optional.h" #include "llvm/ADT/STLExtras.h" -#include "llvm/ADT/SetOperations.h" #include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringSet.h" #include "llvm/ADT/Triple.h" @@ -376,10 +375,6 @@ void warn(StringRef Message) { errs().flush(); } -void warn(Twine Message) { - WithColor::warning(errs(), ToolName) << Message << "\n"; -} - LLVM_ATTRIBUTE_NORETURN void report_error(StringRef File, Twine Message) { WithColor::error(errs(), ToolName) << "'" << File << "': " << Message << ".\n"; @@ -1096,7 +1091,6 @@ static void disassembleObject(const Target *TheTarget, const ObjectFile *Obj, // Sort all the symbols, this allows us to use a simple binary search to find // a symbol near an address. - StringSet<> FoundDisasmFuncsSet; for (std::pair<const SectionRef, SectionSymbolsTy> &SecSyms : AllSymbols) array_pod_sort(SecSyms.second.begin(), SecSyms.second.end()); array_pod_sort(AbsoluteSymbols.begin(), AbsoluteSymbols.end()); @@ -1188,8 +1182,6 @@ static void disassembleObject(const Target *TheTarget, const ObjectFile *Obj, uint64_t Start = std::get<0>(Symbols[SI]); if (Start < SectionAddr || StopAddress <= Start) continue; - else - FoundDisasmFuncsSet.insert(std::get<1>(Symbols[SI])); // The end is the section end, the beginning of the next symbol, or // --stop-address. @@ -1410,10 +1402,6 @@ static void disassembleObject(const Target *TheTarget, const ObjectFile *Obj, } } } - StringSet<> MissingDisasmFuncsSet = - set_difference(DisasmFuncsSet, FoundDisasmFuncsSet); - for (StringRef MissingDisasmFunc : MissingDisasmFuncsSet.keys()) - warn("failed to disassemble missing function " + MissingDisasmFunc); } static void disassembleObject(const ObjectFile *Obj, bool InlineRelocs) { |