diff options
author | Sean Silva <chisophugis@gmail.com> | 2016-03-23 00:25:13 +0000 |
---|---|---|
committer | Sean Silva <chisophugis@gmail.com> | 2016-03-23 00:25:13 +0000 |
commit | 232c33170282edb9523b1ee60e968863aac62e13 (patch) | |
tree | c97c62e3f0a92fa96f7cd69a8d70bf5ddba70c53 | |
parent | 49a59ca0930f3038e5bfc8cea66f06be957ecf92 (diff) | |
download | bcm5719-llvm-232c33170282edb9523b1ee60e968863aac62e13.tar.gz bcm5719-llvm-232c33170282edb9523b1ee60e968863aac62e13.zip |
[docs] Clarify the sense of --compile-command
In retrospect, it seems "obvious" that the sense of the return code is
the same as if it crashed on "interesting" inputs. But that didn't stop
me from spending more time than I care to admit verifying this.
llvm-svn: 264119
-rw-r--r-- | llvm/docs/CommandGuide/bugpoint.rst | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/docs/CommandGuide/bugpoint.rst b/llvm/docs/CommandGuide/bugpoint.rst index f11585d359c..6b56f04c835 100644 --- a/llvm/docs/CommandGuide/bugpoint.rst +++ b/llvm/docs/CommandGuide/bugpoint.rst @@ -151,7 +151,12 @@ OPTIONS **--compile-command** *command* This option defines the command to use with the **--compile-custom** - option to compile the bitcode testcase. This can be useful for + option to compile the bitcode testcase. The command should exit with a + failure exit code if the file is "interesting" and should exit with a + success exit code (i.e. 0) otherwise (this is the same as if it crashed on + "interesting" inputs). + + This can be useful for testing compiler output without running any link or execute stages. To generate a reduced unit test, you may add CHECK directives to the testcase and pass the name of an executable compile-command script in this form: |