summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-c-test/calc.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/calc.c
parent6274e5222d22e925c579721aed51ad334589210b (diff)
downloadbcm5719-llvm-9a3bd236682ad555b36921423fb6591a974b77fa.tar.gz
bcm5719-llvm-9a3bd236682ad555b36921423fb6591a974b77fa.zip
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/calc.c')
-rw-r--r--llvm/tools/llvm-c-test/calc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-c-test/calc.c b/llvm/tools/llvm-c-test/calc.c
index 646b5b056ac..4c273cbf70a 100644
--- a/llvm/tools/llvm-c-test/calc.c
+++ b/llvm/tools/llvm-c-test/calc.c
@@ -139,9 +139,9 @@ static void handle_line(char **tokens, int ntokens) {
LLVMDisposeModule(M);
}
-int calc(void) {
+int llvm_calc(void) {
- tokenize_stdin(handle_line);
+ llvm_tokenize_stdin(handle_line);
return 0;
}
OpenPOWER on IntegriCloud