summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cxxdump
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2015-09-15 23:35:32 +0000
committerDavide Italiano <davide@freebsd.org>2015-09-15 23:35:32 +0000
commit386e2ab1581f076487643a9fc83763a518cb75b2 (patch)
treeb9d609d8dbe7e4fe19855053078f3ae9b3cf7e96 /llvm/tools/llvm-cxxdump
parent778ac14dfb97730518bf5b566cdf119864613742 (diff)
downloadbcm5719-llvm-386e2ab1581f076487643a9fc83763a518cb75b2.tar.gz
bcm5719-llvm-386e2ab1581f076487643a9fc83763a518cb75b2.zip
[llvm-cxxdump] Remove duplicate code check.
We already fail with 'No such file or directory' when we try to open the file -- if that doesn't exist. Also add a test to verify this behavior. llvm-svn: 247744
Diffstat (limited to 'llvm/tools/llvm-cxxdump')
-rw-r--r--llvm/tools/llvm-cxxdump/llvm-cxxdump.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/tools/llvm-cxxdump/llvm-cxxdump.cpp b/llvm/tools/llvm-cxxdump/llvm-cxxdump.cpp
index ede13f7aca5..bea34fee3aa 100644
--- a/llvm/tools/llvm-cxxdump/llvm-cxxdump.cpp
+++ b/llvm/tools/llvm-cxxdump/llvm-cxxdump.cpp
@@ -499,12 +499,6 @@ static void dumpArchive(const Archive *Arc) {
}
static void dumpInput(StringRef File) {
- // If file isn't stdin, check that it exists.
- if (File != "-" && !sys::fs::exists(File)) {
- reportError(File, cxxdump_error::file_not_found);
- return;
- }
-
// Attempt to open the binary.
ErrorOr<OwningBinary<Binary>> BinaryOrErr = createBinary(File);
if (std::error_code EC = BinaryOrErr.getError()) {
OpenPOWER on IntegriCloud