diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-23 22:50:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-23 22:50:28 +0000 |
commit | f6f5b5bcdbd9708e56e52210cd339d1f419e109b (patch) | |
tree | 50b822edbcb9e84de34cc08590936a6c2c712072 /llvm/lib/ExecutionEngine | |
parent | 390d78b3d05a69182ba79d666ff2ffa82f5dbb57 (diff) | |
download | bcm5719-llvm-f6f5b5bcdbd9708e56e52210cd339d1f419e109b.tar.gz bcm5719-llvm-f6f5b5bcdbd9708e56e52210cd339d1f419e109b.zip |
just remove interpreter support for endianness mismatches. This was
really old code from when we were running sparcv9 bc files on x86
(before I ported llvm-gcc 3 to work on x86) :)
llvm-svn: 79871
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index 19d7ce375ec..5be3aa87e0a 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp @@ -21,7 +21,6 @@ #include "llvm/ModuleProvider.h" #include "llvm/ExecutionEngine/GenericValue.h" #include "llvm/ADT/Statistic.h" -#include "llvm/ADT/SmallVector.h" #include "llvm/Support/Debug.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/MutexGuard.h" @@ -855,17 +854,6 @@ void ExecutionEngine::LoadValueFromMemory(GenericValue &Result, const Type *Ty) { const unsigned LoadBytes = getTargetData()->getTypeStoreSize(Ty); - if (sys::isLittleEndianHost() != getTargetData()->isLittleEndian()) { - // Host and target are different endian - reverse copy the stored - // bytes into a buffer, and load from that. - uint8_t *Src = (uint8_t*)Ptr; - - SmallVector<uint8_t, 20> Buf; - Buf.resize(LoadBytes+1); - std::reverse_copy(Src, Src + LoadBytes, Buf.data()); - Ptr = (GenericValue*)Buf.data(); - } - switch (Ty->getTypeID()) { case Type::IntegerTyID: // An APInt with all words initially zero. |