From 173a4f43a911175643bda81ee675e8d9269056ea Mon Sep 17 00:00:00 2001 From: dim Date: Mon, 24 Nov 2014 09:15:30 +0000 Subject: Vendor import of clang RELEASE_350/final tag r216957 (effectively, 3.5.0 release): https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_350/final@216957 --- lib/CodeGen/CodeGenABITypes.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lib/CodeGen/CodeGenABITypes.cpp') diff --git a/lib/CodeGen/CodeGenABITypes.cpp b/lib/CodeGen/CodeGenABITypes.cpp index 18c836c..180cd51 100644 --- a/lib/CodeGen/CodeGenABITypes.cpp +++ b/lib/CodeGen/CodeGenABITypes.cpp @@ -17,23 +17,23 @@ //===----------------------------------------------------------------------===// #include "clang/CodeGen/CodeGenABITypes.h" - -#include "clang/CodeGen/CGFunctionInfo.h" #include "CodeGenModule.h" +#include "clang/CodeGen/CGFunctionInfo.h" +#include "clang/Frontend/CodeGenOptions.h" using namespace clang; using namespace CodeGen; CodeGenABITypes::CodeGenABITypes(ASTContext &C, - const CodeGenOptions &CodeGenOpts, llvm::Module &M, - const llvm::DataLayout &TD, - DiagnosticsEngine &Diags) - : CGM(new CodeGen::CodeGenModule(C, CodeGenOpts, M, TD, Diags)) { + const llvm::DataLayout &TD) + : CGO(new CodeGenOptions), + CGM(new CodeGen::CodeGenModule(C, *CGO, M, TD, C.getDiagnostics())) { } CodeGenABITypes::~CodeGenABITypes() { + delete CGO; delete CGM; } @@ -60,10 +60,10 @@ CodeGenABITypes::arrangeCXXMethodType(const CXXRecordDecl *RD, } const CGFunctionInfo & -CodeGenABITypes::arrangeLLVMFunctionInfo(CanQualType returnType, - llvm::ArrayRef argTypes, +CodeGenABITypes::arrangeFreeFunctionCall(CanQualType returnType, + ArrayRef argTypes, FunctionType::ExtInfo info, RequiredArgs args) { - return CGM->getTypes().arrangeLLVMFunctionInfo(returnType, argTypes, - info, args); + return CGM->getTypes().arrangeLLVMFunctionInfo( + returnType, /*IsInstanceMethod=*/false, argTypes, info, args); } -- cgit v1.1