mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
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
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user