forked from OSchip/llvm-project
Drop AST's version of ARMCXXABI, it doesn't differ from the Itanium base
class. llvm-svn: 208687
This commit is contained in:
parent
7bd7063db0
commit
daa13aa4c8
|
@ -678,11 +678,10 @@ CXXABI *ASTContext::createCXXABI(const TargetInfo &T) {
|
|||
if (!LangOpts.CPlusPlus) return nullptr;
|
||||
|
||||
switch (T.getCXXABI().getKind()) {
|
||||
case TargetCXXABI::GenericARM:
|
||||
case TargetCXXABI::GenericARM: // Same as Itanium at this level
|
||||
case TargetCXXABI::iOS:
|
||||
case TargetCXXABI::iOS64:
|
||||
return CreateARMCXXABI(*this);
|
||||
case TargetCXXABI::GenericAArch64: // Same as Itanium at this level
|
||||
case TargetCXXABI::GenericAArch64:
|
||||
case TargetCXXABI::GenericItanium:
|
||||
return CreateItaniumCXXABI(*this);
|
||||
case TargetCXXABI::Microsoft:
|
||||
|
|
|
@ -44,7 +44,6 @@ public:
|
|||
};
|
||||
|
||||
/// Creates an instance of a C++ ABI class.
|
||||
CXXABI *CreateARMCXXABI(ASTContext &Ctx);
|
||||
CXXABI *CreateItaniumCXXABI(ASTContext &Ctx);
|
||||
CXXABI *CreateMicrosoftCXXABI(ASTContext &Ctx);
|
||||
}
|
||||
|
|
|
@ -89,17 +89,8 @@ public:
|
|||
return new ItaniumNumberingContext();
|
||||
}
|
||||
};
|
||||
|
||||
class ARMCXXABI : public ItaniumCXXABI {
|
||||
public:
|
||||
ARMCXXABI(ASTContext &Ctx) : ItaniumCXXABI(Ctx) { }
|
||||
};
|
||||
}
|
||||
|
||||
CXXABI *clang::CreateItaniumCXXABI(ASTContext &Ctx) {
|
||||
return new ItaniumCXXABI(Ctx);
|
||||
}
|
||||
|
||||
CXXABI *clang::CreateARMCXXABI(ASTContext &Ctx) {
|
||||
return new ARMCXXABI(Ctx);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue