forked from OSchip/llvm-project
Move FailedModulesSet over to shared_ptr from IntrusiveRefCntPtr
llvm-svn: 291159
This commit is contained in:
parent
a8bf97569a
commit
f95113dacf
|
@ -117,7 +117,7 @@ public:
|
|||
ObjCXXARCStandardLibraryKind ObjCXXARCStandardLibrary;
|
||||
|
||||
/// \brief Records the set of modules
|
||||
class FailedModulesSet : public RefCountedBase<FailedModulesSet> {
|
||||
class FailedModulesSet {
|
||||
llvm::StringSet<> Failed;
|
||||
|
||||
public:
|
||||
|
@ -136,7 +136,7 @@ public:
|
|||
/// to (re)build modules, so that once a module fails to build anywhere,
|
||||
/// other instances will see that the module has failed and won't try to
|
||||
/// build it again.
|
||||
IntrusiveRefCntPtr<FailedModulesSet> FailedModules;
|
||||
std::shared_ptr<FailedModulesSet> FailedModules;
|
||||
|
||||
public:
|
||||
PreprocessorOptions() : UsePredefines(true), DetailedRecord(false),
|
||||
|
|
|
@ -1049,7 +1049,8 @@ static bool compileModuleImpl(CompilerInstance &ImportingInstance,
|
|||
PreprocessorOptions &ImportingPPOpts
|
||||
= ImportingInstance.getInvocation().getPreprocessorOpts();
|
||||
if (!ImportingPPOpts.FailedModules)
|
||||
ImportingPPOpts.FailedModules = new PreprocessorOptions::FailedModulesSet;
|
||||
ImportingPPOpts.FailedModules =
|
||||
std::make_shared<PreprocessorOptions::FailedModulesSet>();
|
||||
PPOpts.FailedModules = ImportingPPOpts.FailedModules;
|
||||
|
||||
// If there is a module map file, build the module using the module map.
|
||||
|
|
Loading…
Reference in New Issue