From f8c430b3da9a9f6ebd9fc070bf409435d65bb4f2 Mon Sep 17 00:00:00 2001
From: Mikhail Glushenkov
Date: Fri, 9 Jan 2009 16:16:27 +0000
Subject: Add a --check-graph option to llvmc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61989 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/CompilerDriver.html | 10 ++++++++++
1 file changed, 10 insertions(+)
(limited to 'docs/CompilerDriver.html')
diff --git a/docs/CompilerDriver.html b/docs/CompilerDriver.html
index 7d0399016d..e49b2e98ae 100644
--- a/docs/CompilerDriver.html
+++ b/docs/CompilerDriver.html
@@ -107,6 +107,9 @@ until the next -x option.
-load PLUGIN_NAME - Load the specified plugin DLL. Example:
-load $LLVM_DIR/Release/lib/LLVMCSimple.so.
-v - Enable verbose mode, i.e. print out all executed commands.
+--check-graph - Check the compilation for common errors like
+mismatched output/input language names, multiple default edges and
+cycles. Hidden option, useful for debugging.
--view-graph - Show a graphical representation of the compilation
graph. Requires that you have dot and gv programs
installed. Hidden option, useful for debugging.
@@ -566,6 +569,13 @@ line option --view-graph
Ghostview are installed. There is also a --dump-graph option that
creates a Graphviz source file (compilation-graph.dot) in the
current directory.
+Another useful option is --check-graph. It checks the compilation
+graph for common errors like mismatched output/input language names,
+multiple default edges and cycles. These checks can't be performed at
+compile-time because the plugins can load code dynamically. When
+invoked with --check-graph, llvmc doesn't perform any
+compilation tasks and returns the number of encountered errors as its
+status code.
--
cgit v1.2.3-70-g09d2