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.

llvm-svn: 111749
This commit is contained in:
John McCall
2010-08-21 22:46:04 +00:00
parent b186bc3c4b
commit 86353416a7
10 changed files with 70 additions and 14 deletions

View File

@@ -91,11 +91,15 @@ void CodeGenModule::createObjCRuntime() {
void CodeGenModule::createCXXABI() {
switch (Context.Target.getCXXABI()) {
default:
case CXXABI_ARM:
ABI = CreateARMCXXABI(*this);
break;
case CXXABI_Itanium:
ABI = CreateItaniumCXXABI(*this);
break;
case CXXABI_Microsoft:
ABI = CreateMicrosoftCXXABI(*this);
break;
}
}