[llvm-commits] [llvm] r79871 - /llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp
Chris Lattner
sabre at nondot.org
Sun Aug 23 15:50:29 PDT 2009
Author: lattner
Date: Sun Aug 23 17:50:28 2009
New Revision: 79871
URL: http://llvm.org/viewvc/llvm-project?rev=79871&view=rev
Log:
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) :)
Modified:
llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp
Modified: llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp?rev=79871&r1=79870&r2=79871&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp Sun Aug 23 17:50:28 2009
@@ -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 @@
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.
More information about the llvm-commits
mailing list