mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Remove MallocInst from LLVM Instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84299 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1191,9 +1191,6 @@ void MSILWriter::printInstruction(const Instruction* Inst) {
|
||||
case Instruction::Alloca:
|
||||
printAllocaInstruction(cast<AllocaInst>(Inst));
|
||||
break;
|
||||
case Instruction::Malloc:
|
||||
llvm_unreachable("LowerAllocationsPass used");
|
||||
break;
|
||||
case Instruction::Free:
|
||||
llvm_unreachable("LowerAllocationsPass used");
|
||||
break;
|
||||
@@ -1702,7 +1699,7 @@ bool MSILTarget::addPassesToEmitWholeFile(PassManager &PM,
|
||||
if (FileType != TargetMachine::AssemblyFile) return true;
|
||||
MSILWriter* Writer = new MSILWriter(o);
|
||||
PM.add(createGCLoweringPass());
|
||||
PM.add(createLowerAllocationsPass(true));
|
||||
PM.add(createLowerAllocationsPass());
|
||||
// FIXME: Handle switch trougth native IL instruction "switch"
|
||||
PM.add(createLowerSwitchPass());
|
||||
PM.add(createCFGSimplificationPass());
|
||||
|
||||
Reference in New Issue
Block a user