[PM] Fix the const-correctness of the generic DominatorTreeBase to
authorChandler Carruth <chandlerc@gmail.com>
Mon, 13 Jan 2014 11:58:34 +0000 (11:58 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 13 Jan 2014 11:58:34 +0000 (11:58 +0000)
commited0b9ad2e6cff55aac94c0e2d7630e7ed3e80cc7
tree80fce458957ce81c58d7f56f7662294749aa05e1
parent2073b0a63cfd7ea54b5307953ce11f378365d73d
[PM] Fix the const-correctness of the generic DominatorTreeBase to
support notionally const queries even though they may trigger DFS
numbering updates.

The updating of DFS numbers and tracking of slow queries do not mutate
the observable state of the domtree. They should be const to
differentiate them from the APIs which mutate the tree directly to do
incremental updates.

This will make it possible in a world where the DominatorTree is not
a pass but merely the result of running a pass to derive DominatorTree
from the base class as it was originally designed, removing a huge
duplication of API in DominatorTree.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199101 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/GenericDomTree.h