[PATCH] D64360: [llvm-profdata] Handle the cases of overlapping input file and output file

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 12:15:36 PDT 2019


davidxl added inline comments.


================
Comment at: llvm/tools/llvm-profdata/llvm-profdata.cpp:1024
+  if (!Filename.compare(OutputFilename)) {
+    errs() << "Input file name cannot be the same as output file name.\n";
+    return 1;
----------------
Use the same error reporting format:

errs() << ProgName << ": " << ReasonString <<"!\n";


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64360/new/

https://reviews.llvm.org/D64360





More information about the llvm-commits mailing list