Expose Function::viewCFG and Function::viewCFGOnly to bindings.
[oota-llvm.git] / include / llvm-c / Analysis.h
index e8f27871cc1a92d85c8a2408d26584ca50cef598..68d8e65db49e096486571d48ed0cdf7832ea88d6 100644 (file)
@@ -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
 }