1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

[llvm-profdata] Delete unneeded empty output filename check

This commit is contained in:
Fangrui Song 2021-06-19 12:20:45 -07:00
parent 61a08a19b8
commit e2a2115bff

View File

@ -2506,9 +2506,6 @@ static int show_main(int argc, const char *argv[]) {
cl::ParseCommandLineOptions(argc, argv, "LLVM profile data summary\n"); cl::ParseCommandLineOptions(argc, argv, "LLVM profile data summary\n");
if (OutputFilename.empty())
OutputFilename = "-";
if (Filename == OutputFilename) { if (Filename == OutputFilename) {
errs() << sys::path::filename(argv[0]) errs() << sys::path::filename(argv[0])
<< ": Input file name cannot be the same as the output file name!\n"; << ": Input file name cannot be the same as the output file name!\n";