From 5762592b49b047568a547b8eb1be0c6e6deea4bb Mon Sep 17 00:00:00 2001 From: John McCall Date: Fri, 25 Jan 2013 23:36:14 +0000 Subject: Move the decision about the kind of CGCXXABI to make inside the family-specific files. llvm-svn: 173530 --- clang/lib/CodeGen/CodeGenModule.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 9d78549..225ff8b 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"); -- cgit v1.1