mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Revert my last commit. Not needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45994 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
15ea48c9ce
commit
5daafa9b1b
@ -115,32 +115,19 @@ void CallingConvEmitter::EmitAction(Record *Action,
|
||||
int Size = Action->getValueAsInt("Size");
|
||||
int Align = Action->getValueAsInt("Align");
|
||||
|
||||
O << IndentStr << "unsigned Size = ";
|
||||
O << IndentStr << "unsigned Offset" << ++Counter
|
||||
<< " = State.AllocateStack(";
|
||||
if (Size)
|
||||
O << Size;
|
||||
O << Size << ", ";
|
||||
else
|
||||
O << "State.getTarget().getTargetData()"
|
||||
"->getABITypeSize(MVT::getTypeForValueType(LocVT))";
|
||||
O << ";\n"
|
||||
<< IndentStr << "unsigned Align = ";
|
||||
O << "\n" << IndentStr << " State.getTarget().getTargetData()"
|
||||
"->getABITypeSize(MVT::getTypeForValueType(LocVT)), ";
|
||||
if (Align)
|
||||
O << Align;
|
||||
else
|
||||
O << "State.getTarget().getTargetData()"
|
||||
O << "\n" << IndentStr << " State.getTarget().getTargetData()"
|
||||
"->getABITypeAlignment(MVT::getTypeForValueType(LocVT))";
|
||||
O << ";\n";
|
||||
O << IndentStr << "if (ArgFlags & ISD::ParamFlags::ByVal) {\n";
|
||||
O << IndentStr << " " <<
|
||||
"Size = (ArgFlags & ISD::ParamFlags::ByValSize) >> "
|
||||
"ISD::ParamFlags::ByValSizeOffs;\n";
|
||||
O << IndentStr << " " <<
|
||||
"unsigned ParamAlign = 1 << ((ArgFlags & ISD::ParamFlags::ByValAlign) "
|
||||
">> ISD::ParamFlags::ByValAlignOffs);\n";
|
||||
O << IndentStr << " Align = std::max(Align, ParamAlign);\n"
|
||||
<< IndentStr << "}\n";
|
||||
O << IndentStr << "unsigned Offset" << ++Counter
|
||||
<< " = State.AllocateStack(Size, Align);\n";
|
||||
O << IndentStr
|
||||
O << ");\n" << IndentStr
|
||||
<< "State.addLoc(CCValAssign::getMem(ValNo, ValVT, Offset"
|
||||
<< Counter << ", LocVT, LocInfo));\n";
|
||||
O << IndentStr << "return false;\n";
|
||||
|
Loading…
Reference in New Issue
Block a user