aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorErick Tryzelaar <idadesub@users.sourceforge.net>2008-03-31 16:22:09 +0000
committerErick Tryzelaar <idadesub@users.sourceforge.net>2008-03-31 16:22:09 +0000
commita268e324dceb091d6cd5030f958e35e60c38e4f0 (patch)
tree3a39355c6721ff81bf64ee54d5dc679e3159c82d /include
parent287062ef90611d703122c53fed15062f121744fb (diff)
downloadexternal_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 'include')
-rw-r--r--include/llvm-c/Analysis.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm-c/Analysis.h b/include/llvm-c/Analysis.h
index e8f2787..68d8e65 100644
--- a/include/llvm-c/Analysis.h
+++ b/include/llvm-c/Analysis.h
@@ -43,6 +43,10 @@ int LLVMVerifyModule(LLVMModuleRef M, LLVMVerifierFailureAction Action,
for debugging. */
int LLVMVerifyFunction(LLVMValueRef Fn, LLVMVerifierFailureAction Action);
+/* Open up a ghostview window that displays the CFG of the current function.
+ Useful for debugging. */
+void LLVMViewFunctionCFG(LLVMValueRef Fn);
+void LLVMViewFunctionCFGOnly(LLVMValueRef Fn);
#ifdef __cplusplus
}