Drop AST's version of ARMCXXABI, it doesn't differ from the Itanium base

class.

llvm-svn: 208687
This commit is contained in:
Joerg Sonnenberger 2014-05-13 11:20:16 +00:00
parent 7bd7063db0
commit daa13aa4c8
3 changed files with 2 additions and 13 deletions

View File

@ -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:

View File

@ -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);
}

View File

@ -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);
}