diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-12-02 03:23:45 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-12-02 03:23:45 +0000 |
commit | 55a17b66cd66c86f2005eb065c78ebbae1f8fe27 (patch) | |
tree | 54de41988f90a3b023d5ebadb61a1aad3872c6fa /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 120c77e4e986725cdd76cd58943714294aa1a54b (diff) | |
download | bcm5719-llvm-55a17b66cd66c86f2005eb065c78ebbae1f8fe27.tar.gz bcm5719-llvm-55a17b66cd66c86f2005eb065c78ebbae1f8fe27.zip |
Add ASTUnit::LoadFromCommandLine, which creates an ASTUnit out of a list of
(clang/driver) command line arguments (including the source file).
- The arguments are expected to include the source file.
- The idea is that even though this is a somewhat odd API, its the form which
many tools can most easily use (for example, by interposing with the compiler).
Also, switch index-test's -ast-from-source to use this entry point, and provide
a -arg command line argument which can be used to test that the command line
arguments are handled correctly.
llvm-svn: 90288
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions