diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-11 12:42:39 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-11 12:42:39 +0000 |
commit | cf47239da30ea57aaddc591018d0c0a2858088d8 (patch) | |
tree | c2d0d6b258a0f9d2ad9a9e8ba1cfc218ccdc020f /lib/ExecutionEngine | |
parent | aa2a162eae1b098100d4c60a1ffd78d9a8789f09 (diff) | |
download | external_llvm-cf47239da30ea57aaddc591018d0c0a2858088d8.zip external_llvm-cf47239da30ea57aaddc591018d0c0a2858088d8.tar.gz external_llvm-cf47239da30ea57aaddc591018d0c0a2858088d8.tar.bz2 |
Don't expose symbols of lle_ functions.
+ formatting fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 6fb7973..a03c7f5 100644 --- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -471,11 +471,11 @@ GenericValue lle_X_fprintf(FunctionType *FT, return GV; } -GenericValue lle_X_memset(FunctionType *FT, - const std::vector<GenericValue> &Args) { +static GenericValue lle_X_memset(FunctionType *FT, + const std::vector<GenericValue> &Args) { int val = (int)Args[1].IntVal.getSExtValue(); size_t len = (size_t)Args[2].IntVal.getZExtValue(); - memset((void*)GVTOP(Args[0]),val, len); + memset((void *)GVTOP(Args[0]), val, len); // llvm.memset.* returns void, lle_X_* returns GenericValue, // so here we return GenericValue with IntVal set to zero GenericValue GV; @@ -483,13 +483,12 @@ GenericValue lle_X_memset(FunctionType *FT, return GV; } -GenericValue lle_X_memcpy(FunctionType *FT, - const std::vector<GenericValue> &Args) { - +static GenericValue lle_X_memcpy(FunctionType *FT, + const std::vector<GenericValue> &Args) { memcpy(GVTOP(Args[0]), GVTOP(Args[1]), (size_t)(Args[2].IntVal.getLimitedValue())); - // llvm.mecpy* returns void, lle_X_* returns GenericValue, + // llvm.memcpy* returns void, lle_X_* returns GenericValue, // so here we return GenericValue with IntVal set to zero GenericValue GV; GV.IntVal = 0; |