aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-c-test/module.c
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-02-05 13:31:14 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-02-05 13:31:14 +0000
commit9a3bd236682ad555b36921423fb6591a974b77fa (patch)
tree0095e65cbe58c7b9fc4c89071c0d743ac2270c72 /llvm/tools/llvm-c-test/module.c
parent6274e5222d22e925c579721aed51ad334589210b (diff)
downloadllvm-9a3bd236682ad555b36921423fb6591a974b77fa.zip
llvm-9a3bd236682ad555b36921423fb6591a974b77fa.tar.gz
llvm-9a3bd236682ad555b36921423fb6591a974b77fa.tar.bz2
Prefix external symbols in llvm-c-test.
This makes it less likely to clash with other stuff that might be linked in by change, e.g. ncurses exposes an external function called simply "echo", so linking ncurses statically into the binary explodes in funny ways. llvm-svn: 259882
Diffstat (limited to 'llvm/tools/llvm-c-test/module.c')
-rw-r--r--llvm/tools/llvm-c-test/module.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/tools/llvm-c-test/module.c b/llvm/tools/llvm-c-test/module.c
index 16ed6db..c47b55d 100644
--- a/llvm/tools/llvm-c-test/module.c
+++ b/llvm/tools/llvm-c-test/module.c
@@ -25,7 +25,7 @@ static void diagnosticHandler(LLVMDiagnosticInfoRef DI, void *C) {
exit(1);
}
-LLVMModuleRef load_module(bool Lazy, bool New) {
+LLVMModuleRef llvm_load_module(bool Lazy, bool New) {
LLVMMemoryBufferRef MB;
LLVMModuleRef M;
char *msg = NULL;
@@ -62,8 +62,8 @@ 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);
@@ -74,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);
@@ -115,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);