[cfi-verify] Add DOT graph printing for GraphResult objects.
authorMitch Phillips <mitchphillips@outlook.com>
Tue, 14 Nov 2017 22:43:13 +0000 (22:43 +0000)
committerMitch Phillips <mitchphillips@outlook.com>
Tue, 14 Nov 2017 22:43:13 +0000 (22:43 +0000)
commit02993892d81f256d1a4a61bb4886db3376a75644
tree34ba89032d0ee2746aeba55cac62a0e50ba5c905
parente6201c8724dbce94969bc0b7f81e950cdbb6f742
[cfi-verify] Add DOT graph printing for GraphResult objects.

Allows users to view GraphResult objects in a DOT directed-graph format. This feature can be turned on through the --print-graphs flag.

Also enabled pretty-printing of instructions in output. Together these features make analysis of unprotected CF instructions much easier by providing a visual control flow graph.

Reviewers: pcc

Subscribers: llvm-commits, kcc, vlad.tsyrklevich

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

llvm-svn: 318211
llvm/test/tools/llvm-cfi-verify/X86/dot-printing.s [new file with mode: 0644]
llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp
llvm/tools/llvm-cfi-verify/lib/FileAnalysis.h
llvm/tools/llvm-cfi-verify/lib/GraphBuilder.cpp
llvm/tools/llvm-cfi-verify/lib/GraphBuilder.h
llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp