mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
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
This commit is contained in:
@ -471,7 +471,7 @@ GenericValue lle_X_fprintf(FunctionType *FT,
|
|||||||
return GV;
|
return GV;
|
||||||
}
|
}
|
||||||
|
|
||||||
GenericValue lle_X_memset(FunctionType *FT,
|
static GenericValue lle_X_memset(FunctionType *FT,
|
||||||
const std::vector<GenericValue> &Args) {
|
const std::vector<GenericValue> &Args) {
|
||||||
int val = (int)Args[1].IntVal.getSExtValue();
|
int val = (int)Args[1].IntVal.getSExtValue();
|
||||||
size_t len = (size_t)Args[2].IntVal.getZExtValue();
|
size_t len = (size_t)Args[2].IntVal.getZExtValue();
|
||||||
@ -483,13 +483,12 @@ GenericValue lle_X_memset(FunctionType *FT,
|
|||||||
return GV;
|
return GV;
|
||||||
}
|
}
|
||||||
|
|
||||||
GenericValue lle_X_memcpy(FunctionType *FT,
|
static GenericValue lle_X_memcpy(FunctionType *FT,
|
||||||
const std::vector<GenericValue> &Args) {
|
const std::vector<GenericValue> &Args) {
|
||||||
|
|
||||||
memcpy(GVTOP(Args[0]), GVTOP(Args[1]),
|
memcpy(GVTOP(Args[0]), GVTOP(Args[1]),
|
||||||
(size_t)(Args[2].IntVal.getLimitedValue()));
|
(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
|
// so here we return GenericValue with IntVal set to zero
|
||||||
GenericValue GV;
|
GenericValue GV;
|
||||||
GV.IntVal = 0;
|
GV.IntVal = 0;
|
||||||
|
Reference in New Issue
Block a user