llvm.org GIT mirror llvm / 91aa2f6
bugpoint: add flag -verbose-errors The default behavior of bugpoint is to print "<crash>" when it finds a reduced test that crashes compilation. With this flag we now can see the output of the crashing program. This is useful to make sure it is the same error being tracked down and not a different error that happens to crash the compiler as well. Differential Revision: https://reviews.llvm.org/D22411 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275646 91177308-0d34-0410-b5e6-96231b3b80d8 Sebastian Pop 3 years ago
2 changed file(s) with 15 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
175175 **--safe-{int,jit,llc,custom}**
176176 option.
177177
178 **--verbose-errors**\ =\ *{true,false}*
179
180 The default behavior of bugpoint is to print "" when it finds a reduced
181 test that crashes compilation. This flag prints the output of the crashing
182 program to stderr. This is useful to make sure it is the same error being
183 tracked down and not a different error that happens to crash the compiler as
184 well. Defaults to false.
185
178186 EXIT STATUS
179187 -----------
180188
5252
5353 cl::opt NoNamedMDRM("disable-namedmd-remove",
5454 cl::desc("Do not remove global named metadata"),
55 cl::init(false));
56 cl::opt VerboseErrors("verbose-errors",
57 cl::desc("Print the output of crashing program"),
5558 cl::init(false));
5659 }
5760
904907 std::string Error;
905908 BD.compileProgram(M, &Error);
906909 if (!Error.empty()) {
907 errs() << "\n";
910 if (VerboseErrors)
911 errs() << Error << "\n";
912 else
913 errs() << "\n";
908914 return true; // Tool is still crashing.
909915 }
910916 errs() << '\n';