Remove the insufficient code in Interpreter::create that computed the
authorReid Spencer <rspencer@reidspencer.com>
Tue, 6 Mar 2007 03:05:57 +0000 (03:05 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 6 Mar 2007 03:05:57 +0000 (03:05 +0000)
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

lib/ExecutionEngine/Interpreter/Interpreter.cpp

index fd60ae11f71b9446069a3d4673cd7bd6c4c4e04d..0792edddc2120aa8fd2cfb182755d92dbff96f97 100644 (file)
@@ -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);
 }