Move processing of TopLevelDecls
to the function
This commit is contained in:
parent
35b1b01abe
commit
517ba1c546
@ -937,14 +937,6 @@ namespace cling {
|
||||
"Lexer must be EOF when starting incremental parse!");
|
||||
#endif
|
||||
|
||||
// Process any TopLevelDecls generated by #pragma weak.
|
||||
for (llvm::SmallVector<Decl*, 2>::iterator
|
||||
I = S.WeakTopLevelDecls().begin(),
|
||||
E = S.WeakTopLevelDecls().end();
|
||||
I != E; ++I) {
|
||||
m_Consumer->HandleTopLevelDecl(DeclGroupRef(*I));
|
||||
}
|
||||
|
||||
DiagnosticsEngine& Diags = getCI()->getDiagnostics();
|
||||
if (m_Consumer->getTransaction()->getIssuedDiags() == Transaction::kErrors)
|
||||
return kFailed;
|
||||
@ -997,6 +989,13 @@ namespace cling {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Process any TopLevelDecls generated by #pragma weak.
|
||||
for (Decl* D : S.WeakTopLevelDecls()) {
|
||||
DeclGroupRef DGR(D);
|
||||
m_Consumer->HandleTopLevelDecl(DGR);
|
||||
}
|
||||
|
||||
LocalInstantiations.perform();
|
||||
GlobalInstantiations.perform();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user