X86 target machine is now parameterizable
authorChris Lattner <sabre@nondot.org>
Mon, 23 Dec 2002 23:55:01 +0000 (23:55 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 23 Dec 2002 23:55:01 +0000 (23:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5124 91177308-0d34-0410-b5e6-96231b3b80d8

tools/jello/jello.cpp

index 7fe37b02f65606a126928c3f741c2c7e01e858c2..73d40581e9d5aba9fa1aef668476ef31a854b1b8 100644 (file)
@@ -11,6 +11,7 @@
 #include "llvm/Target/TargetMachineImpls.h"
 #include "Support/CommandLine.h"
 #include "VM.h"
+#include <memory>
 
 namespace {
   cl::opt<std::string>
@@ -32,7 +33,8 @@ int main(int argc, char **argv) {
 
   // Allocate a target... in the future this will be controllable on the
   // command line.
-  std::auto_ptr<TargetMachine> Target(allocateX86TargetMachine());
+  std::auto_ptr<TargetMachine> Target(
+                allocateX86TargetMachine(TM::PtrSize64 | TM::BigEndian));
   assert(Target.get() && "Could not allocate target machine!");
 
   // Parse the input bytecode file...