diff options
author | John McCall <rjmccall@apple.com> | 2010-11-24 11:21:45 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-11-24 11:21:45 +0000 |
commit | 9b66c4bbbe23accc8c3b3b8cbacf7f093870f68f (patch) | |
tree | b57f74dd7f5edfbff1e89f832d76a03a0f4ebee2 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | cb29802198d0f0fc623c53b34af64f364f1ea45f (diff) | |
download | bcm5719-llvm-9b66c4bbbe23accc8c3b3b8cbacf7f093870f68f.tar.gz bcm5719-llvm-9b66c4bbbe23accc8c3b3b8cbacf7f093870f68f.zip |
Add -cc1 -ast-dump-xml, an excessively detailed XML dump of the internals
of the ASTs. Only available in assertions builds. No stability guarantee.
This is intended solely as a debugging tool. I'm not sure if the goals
are sufficiently aligned with the XML printer to allow a common
implementation.
Currently just falls back on the StmtDumper to display statements,
which means it doesn't produce valid XML in those cases.
llvm-svn: 120088
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
-rw-r--r-- | clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp index 861117fb30a..711cbb64006 100644 --- a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp +++ b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp @@ -35,6 +35,7 @@ static FrontendAction *CreateFrontendBaseAction(CompilerInstance &CI) { llvm_unreachable("Invalid program action!"); case ASTDump: return new ASTDumpAction(); + case ASTDumpXML: return new ASTDumpXMLAction(); case ASTPrint: return new ASTPrintAction(); case ASTPrintXML: return new ASTPrintXMLAction(); case ASTView: return new ASTViewAction(); |