forked from OSchip/llvm-project
parent
962755dbf5
commit
cd4a6bed89
|
@ -734,8 +734,8 @@ static void LoadIntFromMemory(APInt &IntVal, uint8_t *Src, unsigned LoadBytes) {
|
||||||
/// FIXME: document
|
/// FIXME: document
|
||||||
///
|
///
|
||||||
void ExecutionEngine::LoadValueFromMemory(GenericValue &Result,
|
void ExecutionEngine::LoadValueFromMemory(GenericValue &Result,
|
||||||
GenericValue *Ptr,
|
GenericValue *Ptr,
|
||||||
const Type *Ty) {
|
const Type *Ty) {
|
||||||
const unsigned LoadBytes = getTargetData()->getTypeStoreSize(Ty);
|
const unsigned LoadBytes = getTargetData()->getTypeStoreSize(Ty);
|
||||||
|
|
||||||
if (sys::littleEndianHost() != getTargetData()->isLittleEndian()) {
|
if (sys::littleEndianHost() != getTargetData()->isLittleEndian()) {
|
||||||
|
|
Loading…
Reference in New Issue