Adding more analysis algorithms to Clang?

Hi, Ted

After I update from the svn, the source tree can not be compiled (so I can not test the new code using PostOrderCFGView). I only updated Clang. Do I still need to update llvm? Here is the error message:

/Users/gplong/llvm-test/tools/clang/tools/driver/cc1as_main.cpp:298:44: error: too many arguments to function call, expected 9, have 10
Opts.ShowInst));
^~~~~~~~~~~~~
/Users/gplong/llvm-test/include/llvm/Support/TargetRegistry.h:424:5: note: ‘createAsmStreamer’ declared here
MCStreamer *createAsmStreamer(MCContext &Ctx,
^
1 error generated.

Hi, Ted

After I update from the svn, the source tree can not be compiled (so I can not test the new code using PostOrderCFGView). I only updated Clang. Do I still need to update llvm?

Yes, this represents an API shift. Clang and LLVM must always be updated in sync.

Hi,

Attached is the re-generated patch using PostOrderCFGView.

dominators.patch (12.7 KB)

Applied in r142884! Thanks.