[symbolizer] Change error message if module not found (recommit)
This is a recommit of 75f1f158, reverted in 7a443b1c, because it caused compilation error in compiler-rt/lib/sanitizer_common/symbolizer/sanitizer_symbolize.cpp. The error was fixed by Kasimir Georgiev in de4c038c, but this commit was reverted in de088dd3, because the initial commit was reverted. This commit reverts both the reverting commits, 7a443b1c and de088dd3. Original commit message is below. If llvm-symbolize did not find module, the error looked like: LLVMSymbolizer: error reading file: No such file or directory This message does not follow common practice: LLVMSymbolizer is not an utility name. Also the message did not not contain the name of missed file. With this change the error message looks differently: llvm-symbolizer: error: 'abc': No such file or directory This format is closer to messages produced by other utilities and allow proper coloring. Differential Revision: https://reviews.llvm.org/D148032
Loading
Please sign in to comment