1 /**
2 Copyright: Copyright (c) 2017, Joakim Brännström. All rights reserved.
3 License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
4 Author: Joakim Brännström (joakim.brannstrom@gmx.com)
5 */
6 module llvm_hiwrap.analysis;
7
8 import llvm_hiwrap.types : LxValue;
9
10 /** Open up a ghostview window that displays the CFG of the current function.
11 *
12 * Useful for debugging.
13 */
14 void viewCFG(LxValue v) {
15 import llvm : LLVMViewFunctionCFG;
16
17 LLVMViewFunctionCFG(v);
18 }