diff options
author | John McCall <rjmccall@apple.com> | 2013-01-25 23:36:14 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2013-01-25 23:36:14 +0000 |
commit | 5762592b49b047568a547b8eb1be0c6e6deea4bb (patch) | |
tree | fb0f5a93f2f9954eec808590b1f00b8ccd5f0005 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 7211ac15bbd97fd9ea8016a6632cb039a1071f1d (diff) | |
download | bcm5719-llvm-5762592b49b047568a547b8eb1be0c6e6deea4bb.tar.gz bcm5719-llvm-5762592b49b047568a547b8eb1be0c6e6deea4bb.zip |
Move the decision about the kind of CGCXXABI to make inside
the family-specific files.
llvm-svn: 173530
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 9d7854975e8..225ff8b3502 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -53,12 +53,12 @@ static const char AnnotationSection[] = "llvm.metadata"; static CGCXXABI &createCXXABI(CodeGenModule &CGM) { switch (CGM.getContext().getTargetInfo().getCXXABI().getKind()) { - // For IR-generation purposes, there's no significant difference - // between the ARM and iOS ABIs. - case TargetCXXABI::GenericARM: return *CreateARMCXXABI(CGM); - case TargetCXXABI::iOS: return *CreateARMCXXABI(CGM); - case TargetCXXABI::GenericItanium: return *CreateItaniumCXXABI(CGM); - case TargetCXXABI::Microsoft: return *CreateMicrosoftCXXABI(CGM); + case TargetCXXABI::GenericARM: + case TargetCXXABI::iOS: + case TargetCXXABI::GenericItanium: + return *CreateItaniumCXXABI(CGM); + case TargetCXXABI::Microsoft: + return *CreateMicrosoftCXXABI(CGM); } llvm_unreachable("invalid C++ ABI kind"); |