diff options
author | Cong Hou <congh@google.com> | 2015-07-16 23:23:35 +0000 |
---|---|---|
committer | Cong Hou <congh@google.com> | 2015-07-16 23:23:35 +0000 |
commit | 9b4f6b2650fb7db7c09755dcb731a6d68e4ffe11 (patch) | |
tree | 81ae3342d8eda7710c366f38cc2ab9c4b9dadac2 /clang/lib/Frontend/CompilerInstance.cpp | |
parent | d8b775a16609141654e8cd62044bfdb991e19961 (diff) | |
download | llvm-9b4f6b2650fb7db7c09755dcb731a6d68e4ffe11.zip llvm-9b4f6b2650fb7db7c09755dcb731a6d68e4ffe11.tar.gz llvm-9b4f6b2650fb7db7c09755dcb731a6d68e4ffe11.tar.bz2 |
Add new constructors for LoopInfo/DominatorTree/BFI/BPI
Those new constructors make it more natural to construct an object for a function. For example, previously to build a LoopInfo for a function, we need four statements:
DominatorTree DT;
LoopInfo LI;
DT.recalculate(F);
LI.analyze(DT);
Now we only need one statement:
LoopInfo LI(DominatorTree(F));
http://reviews.llvm.org/D11274
llvm-svn: 242486
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions