X86 target machine is now parameterizable

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5124 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-12-23 23:55:01 +00:00
parent 2def884a6c
commit b76d4965c1

View 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...