mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +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:
@ -1258,20 +1258,6 @@ namespace {
|
||||
Out << "\");";
|
||||
break;
|
||||
}
|
||||
case Instruction::Malloc: {
|
||||
const MallocInst* mallocI = cast<MallocInst>(I);
|
||||
Out << "MallocInst* " << iName << " = new MallocInst("
|
||||
<< getCppName(mallocI->getAllocatedType()) << ", ";
|
||||
if (mallocI->isArrayAllocation())
|
||||
Out << opNames[0] << ", " ;
|
||||
Out << "\"";
|
||||
printEscapedString(mallocI->getName());
|
||||
Out << "\", " << bbname << ");";
|
||||
if (mallocI->getAlignment())
|
||||
nl(Out) << iName << "->setAlignment("
|
||||
<< mallocI->getAlignment() << ");";
|
||||
break;
|
||||
}
|
||||
case Instruction::Free: {
|
||||
Out << "FreeInst* " << iName << " = new FreeInst("
|
||||
<< getCppName(I->getOperand(0)) << ", " << bbname << ");";
|
||||
|
Reference in New Issue
Block a user