mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
Pass extra arguments around n stuph
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10631 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cd824d7678
commit
6fb6ce3148
@ -78,7 +78,8 @@ int main(int argc, char **argv) {
|
||||
|
||||
// Allocate target machine. First, check whether the user has
|
||||
// explicitly specified an architecture to compile for.
|
||||
TargetMachine* (*TargetMachineAllocator)(const Module&) = 0;
|
||||
TargetMachine* (*TargetMachineAllocator)(const Module&,
|
||||
IntrinsicLowering *) = 0;
|
||||
switch (Arch) {
|
||||
case x86:
|
||||
TargetMachineAllocator = allocateX86TargetMachine;
|
||||
@ -112,7 +113,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
std::auto_ptr<TargetMachine> target(TargetMachineAllocator(mod));
|
||||
std::auto_ptr<TargetMachine> target(TargetMachineAllocator(mod, 0));
|
||||
assert(target.get() && "Could not allocate target machine!");
|
||||
TargetMachine &Target = *target.get();
|
||||
const TargetData &TD = Target.getTargetData();
|
||||
|
@ -57,8 +57,7 @@ int main(int argc, char **argv, char * const *envp) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
ExecutionEngine *EE =
|
||||
ExecutionEngine::create(MP, ForceInterpreter);
|
||||
ExecutionEngine *EE = ExecutionEngine::create(MP, ForceInterpreter);
|
||||
assert(EE && "Couldn't create an ExecutionEngine, not even an interpreter?");
|
||||
|
||||
// If the user specifically requested an argv[0] to pass into the program, do
|
||||
|
Loading…
x
Reference in New Issue
Block a user