Skip to content

Commit 838b12e

Browse files
committed
Adjust for API changes in Clang.
1 parent 40f0d58 commit 838b12e

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

lib/IRGen/GenCall.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -723,8 +723,8 @@ llvm::Type *SignatureExpansion::expandExternalSignatureTypes() {
723723

724724
// Generate function info for this signature.
725725
auto extInfo = clang::FunctionType::ExtInfo();
726-
auto &FI = IGM.ABITypes->arrangeFreeFunctionCall(clangResultTy, paramTys,
727-
extInfo,
726+
auto &FI = clang::CodeGen::arrangeFreeFunctionCall(IGM.ClangCodeGen->CGM(),
727+
clangResultTy, paramTys, extInfo,
728728
clang::CodeGen::RequiredArgs::All);
729729
ForeignInfo.ClangInfo = &FI;
730730

lib/IRGen/IRGenModule.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252

5353
using namespace swift;
5454
using namespace irgen;
55-
using clang::CodeGen::CodeGenABITypes;
5655
using llvm::Attribute;
5756

5857
const unsigned DefaultAS = 0;
@@ -387,8 +386,6 @@ IRGenModule::IRGenModule(IRGenerator &irgen,
387386
RegisterPreservingCC = DefaultCC;
388387
}
389388

390-
ABITypes = new CodeGenABITypes(clangASTContext, Module);
391-
392389
if (IRGen.Opts.DebugInfoKind != IRGenDebugInfoKind::None) {
393390
DebugInfo = new IRGenDebugInfo(IRGen.Opts, *CI, *this, Module, SF);
394391
}
@@ -399,9 +396,7 @@ IRGenModule::IRGenModule(IRGenerator &irgen,
399396
IRGenModule::~IRGenModule() {
400397
destroyClangTypeConverter();
401398
delete &Types;
402-
if (DebugInfo)
403-
delete DebugInfo;
404-
delete ABITypes;
399+
delete DebugInfo;
405400
}
406401

407402
static bool isReturnAttribute(llvm::Attribute::AttrKind Attr);

lib/IRGen/IRGenModule.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,9 @@ namespace clang {
6666
class Decl;
6767
class Type;
6868
namespace CodeGen {
69-
class CodeGenABITypes;
7069
class CGFunctionInfo;
7170
}
7271
}
73-
using clang::CodeGen::CodeGenABITypes;
7472

7573
namespace swift {
7674
class ArchetypeBuilder;
@@ -361,9 +359,6 @@ class IRGenModule {
361359
const SwiftTargetInfo TargetInfo;
362360
/// Holds lexical scope info, etc. Is a nullptr if we compile without -g.
363361
IRGenDebugInfo *DebugInfo;
364-
/// A Clang-to-IR-type converter for types appearing in function
365-
/// signatures of Objective-C methods and C functions.
366-
CodeGenABITypes *ABITypes;
367362

368363
/// A global variable which stores the hash of the module. Used for
369364
/// incremental compilation.

0 commit comments

Comments
 (0)