File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ class CompilerInstance {
344
344
// / Identifies the set of SourceFiles that are considered primaries. An
345
345
// / invariant is that any SourceFile in this set with an associated
346
346
// / buffer will also have its buffer ID in PrimaryBufferIDs.
347
- llvm::SetVector <SourceFile*> PrimarySourceFiles;
347
+ std::vector <SourceFile *> PrimarySourceFiles;
348
348
349
349
// / Return whether there is an entry in PrimaryInputs for buffer \BufID.
350
350
bool isPrimaryInput (unsigned BufID) const {
@@ -433,7 +433,7 @@ class CompilerInstance {
433
433
434
434
// / Gets the set of SourceFiles which are the primary inputs for this
435
435
// / CompilerInstance.
436
- const llvm::SetVector <SourceFile*> & getPrimarySourceFiles () {
436
+ const ArrayRef <SourceFile *> getPrimarySourceFiles () {
437
437
return PrimarySourceFiles;
438
438
}
439
439
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ void CompilerInstance::recordPrimaryInputBuffer(unsigned BufID) {
67
67
68
68
void CompilerInstance::recordPrimarySourceFile (SourceFile *SF) {
69
69
assert (MainModule && " main module not created yet" );
70
- PrimarySourceFiles.insert (SF);
70
+ PrimarySourceFiles.push_back (SF);
71
71
SF->setReferencedNameTracker (NameTracker);
72
72
if (SF->getBufferID ().hasValue ())
73
73
recordPrimaryInputBuffer (SF->getBufferID ().getValue ());
You can’t perform that action at this time.
0 commit comments