diff options
author | John McCall <rjmccall@apple.com> | 2010-08-21 22:46:04 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-08-21 22:46:04 +0000 |
commit | ee79a4c30e5d1c5285551c9a25b8ec6d45d46aa7 (patch) | |
tree | 646cd47265c995749e077b9f2e620436a5007436 /lib/AST/ASTContext.cpp | |
parent | ff58e3610f4e12094def69eb2d6dcb4330378d8f (diff) |
The ARM C++ ABI is sufficiently different from the Itanium C++ ABI that
it deserves its own enumerator. Obviously the implementations should
closely follow the Itanium ABI except in cases of divergence.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111749 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index ee4608badc..890dfc3490 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -136,13 +136,17 @@ ASTContext::getCanonicalTemplateTemplateParmDecl( } CXXABI *ASTContext::createCXXABI(const TargetInfo &T) { - if (!LangOpts.CPlusPlus) return NULL; + if (!LangOpts.CPlusPlus) return 0; + switch (T.getCXXABI()) { - default: + case CXXABI_ARM: + return CreateARMCXXABI(*this); + case CXXABI_Itanium: return CreateItaniumCXXABI(*this); case CXXABI_Microsoft: return CreateMicrosoftCXXABI(*this); } + return 0; } ASTContext::ASTContext(const LangOptions& LOpts, SourceManager &SM, |