summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-23 23:55:01 +0000
committerChris Lattner <sabre@nondot.org>2002-12-23 23:55:01 +0000
commitb76d4965c18063955f5a7f027a1869da885769d5 (patch)
tree0ba9eef0a4f4474acd60623f8176d696e4b0ad24
parent2def884a6cc9d1ed645d0c5f7055363d5dbc17be (diff)
downloadllvm-b76d4965c18063955f5a7f027a1869da885769d5.tar.gz
llvm-b76d4965c18063955f5a7f027a1869da885769d5.tar.bz2
llvm-b76d4965c18063955f5a7f027a1869da885769d5.tar.xz
X86 target machine is now parameterizable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5124 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/jello/jello.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/jello/jello.cpp b/tools/jello/jello.cpp
index 7fe37b02f6..73d40581e9 100644
--- a/tools/jello/jello.cpp
+++ b/tools/jello/jello.cpp
@@ -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...