[llvm] 0f558db - [llvm-profdata] Delete unneeded empty output filename check
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 19 12:20:50 PDT 2021
Author: Fangrui Song
Date: 2021-06-19T12:20:45-07:00
New Revision: 0f558db742fa52745f475d84336f88f04380e2fb
URL: https://github.com/llvm/llvm-project/commit/0f558db742fa52745f475d84336f88f04380e2fb
DIFF: https://github.com/llvm/llvm-project/commit/0f558db742fa52745f475d84336f88f04380e2fb.diff
LOG: [llvm-profdata] Delete unneeded empty output filename check
Added:
Modified:
llvm/tools/llvm-profdata/llvm-profdata.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-profdata/llvm-profdata.cpp b/llvm/tools/llvm-profdata/llvm-profdata.cpp
index b373c8506e26..d8c77f32b399 100644
--- a/llvm/tools/llvm-profdata/llvm-profdata.cpp
+++ b/llvm/tools/llvm-profdata/llvm-profdata.cpp
@@ -2506,9 +2506,6 @@ static int show_main(int argc, const char *argv[]) {
cl::ParseCommandLineOptions(argc, argv, "LLVM profile data summary\n");
- if (OutputFilename.empty())
- OutputFilename = "-";
-
if (Filename == OutputFilename) {
errs() << sys::path::filename(argv[0])
<< ": Input file name cannot be the same as the output file name!\n";
More information about the llvm-commits
mailing list