diff options
author | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2008-03-31 16:22:09 +0000 |
---|---|---|
committer | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2008-03-31 16:22:09 +0000 |
commit | 4a0da98825eaab137a09fe9f6674e5de55fe06aa (patch) | |
tree | 665c9154db8612368fd7f17c27d6fe843caa88c9 /llvm/lib/Analysis | |
parent | 9c7deb8d258682979e25ce6b8047667effc35906 (diff) | |
download | bcm5719-llvm-4a0da98825eaab137a09fe9f6674e5de55fe06aa.tar.gz bcm5719-llvm-4a0da98825eaab137a09fe9f6674e5de55fe06aa.zip |
Expose Function::viewCFG and Function::viewCFGOnly to bindings.
llvm-svn: 48982
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r-- | llvm/lib/Analysis/Analysis.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/Analysis.cpp b/llvm/lib/Analysis/Analysis.cpp index 6b741bc5bdf..493c6e88b3f 100644 --- a/llvm/lib/Analysis/Analysis.cpp +++ b/llvm/lib/Analysis/Analysis.cpp @@ -33,3 +33,12 @@ int LLVMVerifyFunction(LLVMValueRef Fn, LLVMVerifierFailureAction Action) { static_cast<VerifierFailureAction>(Action)); } +void LLVMViewFunctionCFG(LLVMValueRef Fn) { + Function *F = unwrap<Function>(Fn); + F->viewCFG(); +} + +void LLVMViewFunctionCFGOnly(LLVMValueRef Fn) { + Function *F = unwrap<Function>(Fn); + F->viewCFGOnly(); +} |