diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:06:01 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:06:01 +0000 |
| commit | 486754660bb926339aefcf012a3f848592babb8b (patch) | |
| tree | ecdbc446c9876f4f120f701c243373cd3cb43db3 /lib/CodeGen/ABIInfo.h | |
| parent | 55e6d896ad333f07bb3b1ba487df214fc268a4ab (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/ABIInfo.h')
| -rw-r--r-- | lib/CodeGen/ABIInfo.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/CodeGen/ABIInfo.h b/lib/CodeGen/ABIInfo.h index 575506da84d4..feed3833f24a 100644 --- a/lib/CodeGen/ABIInfo.h +++ b/lib/CodeGen/ABIInfo.h @@ -53,12 +53,9 @@ namespace swiftcall { CodeGen::CodeGenTypes &CGT; protected: llvm::CallingConv::ID RuntimeCC; - llvm::CallingConv::ID BuiltinCC; public: ABIInfo(CodeGen::CodeGenTypes &cgt) - : CGT(cgt), - RuntimeCC(llvm::CallingConv::C), - BuiltinCC(llvm::CallingConv::C) {} + : CGT(cgt), RuntimeCC(llvm::CallingConv::C) {} virtual ~ABIInfo(); @@ -77,11 +74,6 @@ namespace swiftcall { return RuntimeCC; } - /// Return the calling convention to use for compiler builtins - llvm::CallingConv::ID getBuiltinCC() const { - return BuiltinCC; - } - virtual void computeInfo(CodeGen::CGFunctionInfo &FI) const = 0; /// EmitVAArg - Emit the target dependent code to load a value of @@ -108,8 +100,6 @@ namespace swiftcall { virtual bool isHomogeneousAggregateSmallEnough(const Type *Base, uint64_t Members) const; - virtual bool shouldSignExtUnsignedType(QualType Ty) const; - bool isHomogeneousAggregate(QualType Ty, const Type *&Base, uint64_t &Members) const; @@ -137,8 +127,7 @@ namespace swiftcall { bool supportsSwift() const final override { return true; } - virtual bool shouldPassIndirectlyForSwift(CharUnits totalSize, - ArrayRef<llvm::Type*> types, + virtual bool shouldPassIndirectlyForSwift(ArrayRef<llvm::Type*> types, bool asReturnValue) const = 0; virtual bool isLegalVectorTypeForSwift(CharUnits totalSize, |
