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/include/llvm-c | |
| 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/include/llvm-c')
| -rw-r--r-- | llvm/include/llvm-c/Analysis.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Analysis.h b/llvm/include/llvm-c/Analysis.h index e8f27871cc1..68d8e65db49 100644 --- a/llvm/include/llvm-c/Analysis.h +++ b/llvm/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 } |

