From 0f3d0970dcdf6cf17550b86838dff12813968dbc Mon Sep 17 00:00:00 2001 From: John McCall Date: Sat, 7 Jul 2012 06:41:13 +0000 Subject: Distinguish more carefully between free functions and C++ instance methods in the ABI arrangement, and leave a hook behind so that we can easily tweak CCs on platforms that use different CCs by default for C++ instance methods. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159894 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenTypes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/CodeGenTypes.cpp') diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index 41fd536b5c..9a78daefc7 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -474,11 +474,11 @@ llvm::Type *CodeGenTypes::ConvertType(QualType T) { // build it. const CGFunctionInfo *FI; if (const FunctionProtoType *FPT = dyn_cast(FT)) { - FI = &arrangeFunctionType( + FI = &arrangeFreeFunctionType( CanQual::CreateUnsafe(QualType(FPT, 0))); } else { const FunctionNoProtoType *FNPT = cast(FT); - FI = &arrangeFunctionType( + FI = &arrangeFreeFunctionType( CanQual::CreateUnsafe(QualType(FNPT, 0))); } -- cgit v1.2.3