diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-01-15 03:10:35 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-01-15 03:10:35 +0000 |
commit | 3516ec4fd3c9d5a5dad9d024bb17226b2f6d94e2 (patch) | |
tree | 409d7fbbc584465f331b71f6d5ba81be2a4d6598 /utils/TableGen | |
parent | cad636fc0a87f661749cb870c85904f7e3e5b41c (diff) | |
download | external_llvm-3516ec4fd3c9d5a5dad9d024bb17226b2f6d94e2.zip external_llvm-3516ec4fd3c9d5a5dad9d024bb17226b2f6d94e2.tar.gz external_llvm-3516ec4fd3c9d5a5dad9d024bb17226b2f6d94e2.tar.bz2 |
Revert my last commit. Not needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/CallingConvEmitter.cpp | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/utils/TableGen/CallingConvEmitter.cpp b/utils/TableGen/CallingConvEmitter.cpp index c81c80f..f7c2eda 100644 --- a/utils/TableGen/CallingConvEmitter.cpp +++ b/utils/TableGen/CallingConvEmitter.cpp @@ -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"; |