mirror of
https://github.com/intel/llvm.git
synced 2026-02-06 15:18:53 +08:00
Unify the ObjC entrypoint caches.
llvm-svn: 250918
This commit is contained in:
@@ -87,8 +87,8 @@ CodeGenModule::CodeGenModule(ASTContext &C, const HeaderSearchOptions &HSO,
|
||||
VMContext(M.getContext()), TBAA(nullptr), TheTargetCodeGenInfo(nullptr),
|
||||
Types(*this), VTables(*this), ObjCRuntime(nullptr),
|
||||
OpenCLRuntime(nullptr), OpenMPRuntime(nullptr), CUDARuntime(nullptr),
|
||||
DebugInfo(nullptr), ARCData(nullptr),
|
||||
NoObjCARCExceptionsMetadata(nullptr), RRData(nullptr), PGOReader(nullptr),
|
||||
DebugInfo(nullptr), ObjCData(nullptr),
|
||||
NoObjCARCExceptionsMetadata(nullptr), PGOReader(nullptr),
|
||||
CFConstantStringClassRef(nullptr), ConstantStringClassRef(nullptr),
|
||||
NSConstantStringType(nullptr), NSConcreteGlobalBlock(nullptr),
|
||||
NSConcreteStackBlock(nullptr), BlockObjectAssign(nullptr),
|
||||
@@ -142,9 +142,8 @@ CodeGenModule::CodeGenModule(ASTContext &C, const HeaderSearchOptions &HSO,
|
||||
|
||||
Block.GlobalUniqueCount = 0;
|
||||
|
||||
if (C.getLangOpts().ObjCAutoRefCount)
|
||||
ARCData = new ARCEntrypoints();
|
||||
RRData = new RREntrypoints();
|
||||
if (C.getLangOpts().ObjC1)
|
||||
ObjCData = new ObjCEntrypoints();
|
||||
|
||||
if (!CodeGenOpts.InstrProfileInput.empty()) {
|
||||
auto ReaderOrErr =
|
||||
@@ -172,8 +171,7 @@ CodeGenModule::~CodeGenModule() {
|
||||
delete TheTargetCodeGenInfo;
|
||||
delete TBAA;
|
||||
delete DebugInfo;
|
||||
delete ARCData;
|
||||
delete RRData;
|
||||
delete ObjCData;
|
||||
}
|
||||
|
||||
void CodeGenModule::createObjCRuntime() {
|
||||
|
||||
Reference in New Issue
Block a user