diff options
| author | 2017-01-14 19:55:43 +0000 | |
|---|---|---|
| committer | 2017-01-14 19:55:43 +0000 | |
| commit | bd3306aecb3a15e8967143b8cdbbccf2b1b19b74 (patch) | |
| tree | 309a8132b44564b9e634c0da6815187ce8eab27c /gnu/llvm/tools/llvm-c-test/module.c | |
| parent | killp -a should not kill the window if only one pane. (diff) | |
| download | wireguard-openbsd-bd3306aecb3a15e8967143b8cdbbccf2b1b19b74.tar.xz wireguard-openbsd-bd3306aecb3a15e8967143b8cdbbccf2b1b19b74.zip | |
Import LLVM 3.9.1 including clang and lld.
Diffstat (limited to 'gnu/llvm/tools/llvm-c-test/module.c')
| -rw-r--r-- | gnu/llvm/tools/llvm-c-test/module.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gnu/llvm/tools/llvm-c-test/module.c b/gnu/llvm/tools/llvm-c-test/module.c index a6c47bf5fa1..c47b55d5029 100644 --- a/gnu/llvm/tools/llvm-c-test/module.c +++ b/gnu/llvm/tools/llvm-c-test/module.c @@ -14,7 +14,6 @@ #include "llvm-c-test.h" #include "llvm-c/BitReader.h" -#include "llvm-c/Core.h" #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -26,7 +25,7 @@ static void diagnosticHandler(LLVMDiagnosticInfoRef DI, void *C) { exit(1); } -static LLVMModuleRef load_module(bool Lazy, bool New) { +LLVMModuleRef llvm_load_module(bool Lazy, bool New) { LLVMMemoryBufferRef MB; LLVMModuleRef M; char *msg = NULL; @@ -63,8 +62,8 @@ static LLVMModuleRef load_module(bool Lazy, bool New) { return M; } -int module_dump(bool Lazy, bool New) { - LLVMModuleRef M = load_module(Lazy, New); +int llvm_module_dump(bool Lazy, bool New) { + LLVMModuleRef M = llvm_load_module(Lazy, New); char *irstr = LLVMPrintModuleToString(M); puts(irstr); @@ -75,8 +74,8 @@ int module_dump(bool Lazy, bool New) { return 0; } -int module_list_functions(void) { - LLVMModuleRef M = load_module(false, false); +int llvm_module_list_functions(void) { + LLVMModuleRef M = llvm_load_module(false, false); LLVMValueRef f; f = LLVMGetFirstFunction(M); @@ -116,8 +115,8 @@ int module_list_functions(void) { return 0; } -int module_list_globals(void) { - LLVMModuleRef M = load_module(false, false); +int llvm_module_list_globals(void) { + LLVMModuleRef M = llvm_load_module(false, false); LLVMValueRef g; g = LLVMGetFirstGlobal(M); |
