mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
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:
parent
2def884a6c
commit
b76d4965c1
@ -11,6 +11,7 @@
|
|||||||
#include "llvm/Target/TargetMachineImpls.h"
|
#include "llvm/Target/TargetMachineImpls.h"
|
||||||
#include "Support/CommandLine.h"
|
#include "Support/CommandLine.h"
|
||||||
#include "VM.h"
|
#include "VM.h"
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
cl::opt<std::string>
|
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
|
// Allocate a target... in the future this will be controllable on the
|
||||||
// command line.
|
// 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!");
|
assert(Target.get() && "Could not allocate target machine!");
|
||||||
|
|
||||||
// Parse the input bytecode file...
|
// Parse the input bytecode file...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user