diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-03-06 03:05:57 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-03-06 03:05:57 +0000 |
commit | deca08d93d90f51452dacfb957560dd442f8f564 (patch) | |
tree | c12120ac61cec8e2ef002f9e32e7549e5aa81718 /lib/ExecutionEngine/Interpreter | |
parent | 8fb0f190a90f34b9d94d027ed8daf5f537e4b891 (diff) | |
download | external_llvm-deca08d93d90f51452dacfb957560dd442f8f564.zip external_llvm-deca08d93d90f51452dacfb957560dd442f8f564.tar.gz external_llvm-deca08d93d90f51452dacfb957560dd442f8f564.tar.bz2 |
Remove the insufficient code in Interpreter::create that computed the
Target DataLayout incorrectly. For now, we'll trust that the module has
got the correct DataLayout. In the future, this needs to be changed to
tell the TargetData to be "current host".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Interpreter.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/lib/ExecutionEngine/Interpreter/Interpreter.cpp index fd60ae1..0792edd 100644 --- a/lib/ExecutionEngine/Interpreter/Interpreter.cpp +++ b/lib/ExecutionEngine/Interpreter/Interpreter.cpp @@ -46,18 +46,6 @@ ExecutionEngine *Interpreter::create(ModuleProvider *MP, std::string* ErrStr) { // when the module is deleted via the ExistingModuleProvide via EE. delete MP; - // FIXME: This should probably compute the entire data layout - std::string DataLayout; - int Test = 0; - *(char*)&Test = 1; // Return true if the host is little endian - bool isLittleEndian = (Test == 1); - DataLayout.append(isLittleEndian ? "e" : "E"); - - bool Ptr64 = sizeof(void*) == 8; - DataLayout.append(Ptr64 ? "-p:64:64" : "-p:32:32"); - - M->setDataLayout(DataLayout); - return new Interpreter(M); } |