summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-06 03:05:57 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-06 03:05:57 +0000
commit2d89fa84bcdd6d1dd023b90dcb06cc0189a8c08f (patch)
tree37c4cd1c78e40b0181d9158d1665f6531bb0e890 /llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
parent87aa65f40e7c999d729e00dd241912d93e505464 (diff)
downloadbcm5719-llvm-2d89fa84bcdd6d1dd023b90dcb06cc0189a8c08f.tar.gz
bcm5719-llvm-2d89fa84bcdd6d1dd023b90dcb06cc0189a8c08f.zip
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". llvm-svn: 34947
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
index fd60ae11f71..0792edddc21 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud