diff options
author | Chris Lattner <sabre@nondot.org> | 2002-12-23 23:55:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-12-23 23:55:01 +0000 |
commit | b76d4965c18063955f5a7f027a1869da885769d5 (patch) | |
tree | 0ba9eef0a4f4474acd60623f8176d696e4b0ad24 /tools | |
parent | 2def884a6cc9d1ed645d0c5f7055363d5dbc17be (diff) | |
download | external_llvm-b76d4965c18063955f5a7f027a1869da885769d5.zip external_llvm-b76d4965c18063955f5a7f027a1869da885769d5.tar.gz external_llvm-b76d4965c18063955f5a7f027a1869da885769d5.tar.bz2 |
X86 target machine is now parameterizable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5124 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/jello/jello.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/jello/jello.cpp b/tools/jello/jello.cpp index 7fe37b0..73d4058 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... |