summaryrefslogtreecommitdiff
path: root/include/llvm-c
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
commitd6d018589cf3de22bc5d0b2b229e37cdb6afca61 (patch)
tree3a39355c6721ff81bf64ee54d5dc679e3159c82d /include/llvm-c
parent86550b0a143c839956c0f3c1bca589c24ebcc3fb (diff)
downloadllvm-d6d018589cf3de22bc5d0b2b229e37cdb6afca61.tar.gz
llvm-d6d018589cf3de22bc5d0b2b229e37cdb6afca61.tar.bz2
llvm-d6d018589cf3de22bc5d0b2b229e37cdb6afca61.tar.xz
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/llvm-c')
-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 e8f27871cc..68d8e65db4 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
}