forked from OSchip/llvm-project
Remove CallingConvMethodType
This seems to be an old vestage of a previous implementation of getting the default calling convention, and everything is now using CXXABI/ASTContext's getDefaultCallingConvention. Remove it, since it isn't doing anything. llvm-svn: 367039
This commit is contained in:
parent
ad137fa788
commit
393094859e
|
@ -1249,15 +1249,9 @@ public:
|
|||
bool isBigEndian() const { return BigEndian; }
|
||||
bool isLittleEndian() const { return !BigEndian; }
|
||||
|
||||
enum CallingConvMethodType {
|
||||
CCMT_Unknown,
|
||||
CCMT_Member,
|
||||
CCMT_NonMember
|
||||
};
|
||||
|
||||
/// Gets the default calling convention for the given target and
|
||||
/// declaration context.
|
||||
virtual CallingConv getDefaultCallingConv(CallingConvMethodType MT) const {
|
||||
virtual CallingConv getDefaultCallingConv() const {
|
||||
// Not all targets will specify an explicit calling convention that we can
|
||||
// express. This will always do the right thing, even though it's not
|
||||
// an explicit calling convention.
|
||||
|
|
|
@ -10035,7 +10035,7 @@ CallingConv ASTContext::getDefaultCallingConvention(bool IsVariadic,
|
|||
break;
|
||||
}
|
||||
}
|
||||
return Target->getDefaultCallingConv(TargetInfo::CCMT_Unknown);
|
||||
return Target->getDefaultCallingConv();
|
||||
}
|
||||
|
||||
bool ASTContext::isNearlyEmpty(const CXXRecordDecl *RD) const {
|
||||
|
|
|
@ -88,7 +88,7 @@ public:
|
|||
: CCCR_Warning;
|
||||
}
|
||||
|
||||
CallingConv getDefaultCallingConv(CallingConvMethodType MT) const override {
|
||||
CallingConv getDefaultCallingConv() const override {
|
||||
return CC_SpirFunction;
|
||||
}
|
||||
|
||||
|
|
|
@ -320,8 +320,8 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
CallingConv getDefaultCallingConv(CallingConvMethodType MT) const override {
|
||||
return MT == CCMT_Member ? CC_X86ThisCall : CC_C;
|
||||
CallingConv getDefaultCallingConv() const override {
|
||||
return CC_C;
|
||||
}
|
||||
|
||||
bool hasSjLjLowering() const override { return true; }
|
||||
|
@ -659,7 +659,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
CallingConv getDefaultCallingConv(CallingConvMethodType MT) const override {
|
||||
CallingConv getDefaultCallingConv() const override {
|
||||
return CC_C;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue