aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-21 22:46:04 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-21 22:46:04 +0000
commitee79a4c30e5d1c5285551c9a25b8ec6d45d46aa7 (patch)
tree646cd47265c995749e077b9f2e620436a5007436 /lib/CodeGen/CodeGenModule.cpp
parentff58e3610f4e12094def69eb2d6dcb4330378d8f (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/CodeGen/CodeGenModule.cpp')
-rw-r--r--lib/CodeGen/CodeGenModule.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp
index c0df55b808..2d9d57393e 100644
--- a/lib/CodeGen/CodeGenModule.cpp
+++ b/lib/CodeGen/CodeGenModule.cpp
@@ -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;
}
}