#include "ABIInfoImpl.h"
#include "TargetInfo.h"
usingnamespaceclang;
usingnamespaceclang::CodeGen;
namespace {
class ARCABIInfo : public DefaultABIInfo { … };
class ARCTargetCodeGenInfo : public TargetCodeGenInfo { … };
ABIArgInfo ARCABIInfo::getIndirectByRef(QualType Ty, bool HasFreeRegs) const { … }
ABIArgInfo ARCABIInfo::getIndirectByValue(QualType Ty) const { … }
RValue ARCABIInfo::EmitVAArg(CodeGenFunction &CGF, Address VAListAddr,
QualType Ty, AggValueSlot Slot) const { … }
ABIArgInfo ARCABIInfo::classifyArgumentType(QualType Ty,
uint8_t FreeRegs) const { … }
ABIArgInfo ARCABIInfo::classifyReturnType(QualType RetTy) const { … }
}
std::unique_ptr<TargetCodeGenInfo>
CodeGen::createARCTargetCodeGenInfo(CodeGenModule &CGM) { … }