mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-25 02:28:18 +00:00
c000e7ed3d
The final graph contains a single root node, which is a parent of all externally available functions(and 'main'). As well as a list of Parentless/Unreachable functions, which are either truly unreachable or are unreachable due to our analyses imprecision. The analyzer checkers debug.DumpCallGraph or debug.ViewGraph can be used to look at the produced graph. Currently, the graph is not very precise, for example, it entirely skips edges resulted from ObjC method calls. llvm-svn: 152272
25 lines
586 B
CMake
25 lines
586 B
CMake
set(LLVM_USED_LIBS clangBasic clangAST clangIndex)
|
|
|
|
add_clang_library(clangAnalysis
|
|
AnalysisDeclContext.cpp
|
|
CallGraph.cpp
|
|
CFG.cpp
|
|
CFGReachabilityAnalysis.cpp
|
|
CFGStmtMap.cpp
|
|
CocoaConventions.cpp
|
|
Dominators.cpp
|
|
FormatString.cpp
|
|
LiveVariables.cpp
|
|
PostOrderCFGView.cpp
|
|
PrintfFormatString.cpp
|
|
ProgramPoint.cpp
|
|
PseudoConstantAnalysis.cpp
|
|
ReachableCode.cpp
|
|
ScanfFormatString.cpp
|
|
ThreadSafety.cpp
|
|
UninitializedValues.cpp
|
|
)
|
|
|
|
add_dependencies(clangAnalysis ClangAttrClasses ClangAttrList
|
|
ClangDiagnosticAnalysis ClangDeclNodes ClangStmtNodes)
|