mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-11 13:29:36 +00:00
We may be adding functions to the Module during initialization, so
conservatively, it's modified git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20735 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
177f247d59
commit
c7cd5e5672
@ -109,7 +109,7 @@ namespace {
|
|||||||
Target(tgt), Insert(ins), Shift(s), MB(b), ME(e) {}
|
Target(tgt), Insert(ins), Shift(s), MB(b), ME(e) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
// External functions used in the Module
|
// External functions we may use in compiling the Module
|
||||||
Function *fmodfFn, *fmodFn, *__cmpdi2Fn, *__moddi3Fn, *__divdi3Fn,
|
Function *fmodfFn, *fmodFn, *__cmpdi2Fn, *__moddi3Fn, *__divdi3Fn,
|
||||||
*__umoddi3Fn, *__udivdi3Fn, *__fixsfdiFn, *__fixdfdiFn, *__fixunssfdiFn,
|
*__umoddi3Fn, *__udivdi3Fn, *__fixsfdiFn, *__fixdfdiFn, *__fixunssfdiFn,
|
||||||
*__fixunsdfdiFn, *__floatdisfFn, *__floatdidfFn, *mallocFn, *freeFn;
|
*__fixunsdfdiFn, *__floatdisfFn, *__floatdidfFn, *mallocFn, *freeFn;
|
||||||
@ -182,7 +182,7 @@ namespace {
|
|||||||
mallocFn = M.getOrInsertFunction("malloc", voidPtr, Type::UIntTy, 0);
|
mallocFn = M.getOrInsertFunction("malloc", voidPtr, Type::UIntTy, 0);
|
||||||
// void free(void*)
|
// void free(void*)
|
||||||
freeFn = M.getOrInsertFunction("free", Type::VoidTy, voidPtr, 0);
|
freeFn = M.getOrInsertFunction("free", Type::VoidTy, voidPtr, 0);
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// runOnFunction - Top level implementation of instruction selection for
|
/// runOnFunction - Top level implementation of instruction selection for
|
||||||
|
Loading…
x
Reference in New Issue
Block a user