[cfi-verify] Made FileAnalysis operate on a GraphResult rather than build one and...
authorMitch Phillips <mitchphillips@outlook.com>
Fri, 10 Nov 2017 21:00:22 +0000 (21:00 +0000)
committerMitch Phillips <mitchphillips@outlook.com>
Fri, 10 Nov 2017 21:00:22 +0000 (21:00 +0000)
commit3b9ea32ef83247090205891af305d98a3aa5c975
treedb95d9de57ea5c37668ac3abb87d181a56b10b7c
parent3f0f650f498d97516745678b304a1649c3b2450f
[cfi-verify] Made FileAnalysis operate on a GraphResult rather than build one and validate it.

Refactors the behaviour of building graphs out of FileAnalysis, allowing for analysis of the GraphResult by the callee without having to rebuild the graph. Means when we want to analyse the constructed graph (planned for later revisions), we don't do repeated work.

Also makes CFI verification in FileAnalysis now return an enum that allows us to differentiate why something failed, not just that it did/didn't fail.

Reviewers: vlad.tsyrklevich

Subscribers: kcc, pcc, llvm-commits

Differential Revision: https://reviews.llvm.org/D39764

llvm-svn: 317927
llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp
llvm/tools/llvm-cfi-verify/lib/FileAnalysis.h
llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp
llvm/unittests/tools/llvm-cfi-verify/FileAnalysis.cpp