diff options
| author | Davide Italiano <davide@freebsd.org> | 2016-01-27 20:27:44 +0000 |
|---|---|---|
| committer | Davide Italiano <davide@freebsd.org> | 2016-01-27 20:27:44 +0000 |
| commit | 905b8627bb82951b397a94a5a5e99b72a77424e7 (patch) | |
| tree | fe136bef6e6acb99edeb9e8e51d991664da082db /llvm/tools/llvm-nm | |
| parent | 15b01116d90733c004b371960624f511f54d897a (diff) | |
| download | bcm5719-llvm-905b8627bb82951b397a94a5a5e99b72a77424e7.tar.gz bcm5719-llvm-905b8627bb82951b397a94a5a5e99b72a77424e7.zip | |
[llvm-nm] Remove redundant check for file validity.
We already perform it at the beginning of the function so we can't
arrive here with an invalid object. Also, add a test so that bugs
won't sneak in the future.
llvm-svn: 258982
Diffstat (limited to 'llvm/tools/llvm-nm')
| -rw-r--r-- | llvm/tools/llvm-nm/llvm-nm.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/tools/llvm-nm/llvm-nm.cpp b/llvm/tools/llvm-nm/llvm-nm.cpp index 26d1e182abc..00a6cacf78f 100644 --- a/llvm/tools/llvm-nm/llvm-nm.cpp +++ b/llvm/tools/llvm-nm/llvm-nm.cpp @@ -1240,9 +1240,7 @@ static void dumpSymbolNamesFromFile(std::string &Filename) { if (!checkMachOAndArchFlags(O, Filename)) return; dumpSymbolNamesFromObject(*O, true); - return; } - error("unrecognizable file type", Filename); } int main(int argc, char **argv) { |

