Teach the interpreter to read and write memory in the
authorDuncan Sands <baldrick@free.fr>
Fri, 14 Dec 2007 19:38:31 +0000 (19:38 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 14 Dec 2007 19:38:31 +0000 (19:38 +0000)
commit8a43e9e5d751ab827ba3ff0cf862787d3263a484
tree9d99bab072a969763f544d05a9ff7cb572e97897
parent6e959b9afe0daa94cc9621ca0c7dab75e2a7bf43
Teach the interpreter to read and write memory in the
endianness of the target not of the host.  Done by the
simple expedient of reversing bytes for primitive types
if the host and target endianness don't match.  This is
correct for integer and pointer types.  I don't know if
it is correct for floating point types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45039 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/ExecutionEngine.cpp
test/ExecutionEngine/2007-12-14-BigEndian.ll [new file with mode: 0644]
test/ExecutionEngine/2007-12-14-LittleEndian.ll [new file with mode: 0644]