mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Rename CCIfStruct to CCIfByVal and CCStructAssign to CCPassByVal. Remove unused parameters of CCStructAssign and add size and alignment requirement info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45997 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -140,9 +140,12 @@ void CallingConvEmitter::EmitAction(Record *Action,
|
||||
<< IndentStr << IndentStr << "LocInfo = CCValAssign::ZExt;\n"
|
||||
<< IndentStr << "else\n"
|
||||
<< IndentStr << IndentStr << "LocInfo = CCValAssign::AExt;\n";
|
||||
} else if (Action->isSubClassOf("CCStructAssign")) {
|
||||
O << IndentStr <<
|
||||
"State.HandleStruct(ValNo, ValVT, LocVT, LocInfo, ArgFlags);\n";
|
||||
} else if (Action->isSubClassOf("CCPassByVal")) {
|
||||
int Size = Action->getValueAsInt("Size");
|
||||
int Align = Action->getValueAsInt("Align");
|
||||
O << IndentStr
|
||||
<< "State.HandleByVal(ValNo, ValVT, LocVT, LocInfo, "
|
||||
<< Size << ", " << Align << ", ArgFlags);\n";
|
||||
O << IndentStr << "return false;\n";
|
||||
} else {
|
||||
Action->dump();
|
||||
|
||||
Reference in New Issue
Block a user