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 | a268e324dceb091d6cd5030f958e35e60c38e4f0 (patch) | |
tree | 3a39355c6721ff81bf64ee54d5dc679e3159c82d /lib/Analysis | |
parent | 287062ef90611d703122c53fed15062f121744fb (diff) | |
download | external_llvm-a268e324dceb091d6cd5030f958e35e60c38e4f0.zip external_llvm-a268e324dceb091d6cd5030f958e35e60c38e4f0.tar.gz external_llvm-a268e324dceb091d6cd5030f958e35e60c38e4f0.tar.bz2 |
Expose Function::viewCFG and Function::viewCFGOnly to bindings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/Analysis.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Analysis/Analysis.cpp b/lib/Analysis/Analysis.cpp index 6b741bc..493c6e88 100644 --- a/lib/Analysis/Analysis.cpp +++ b/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(); +} |