mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Parse] Remove TypeChecker and SIL options parameter from ParserUnit
Providing these is a bit of a layering violation, the parser shouldn't care about these options (there does seem to be one current use of `TypeCheckerOpts` in the parser for designated operator types, but that's a legacy feature that was never officially supported).
This commit is contained in:
@@ -745,10 +745,9 @@ public:
|
||||
|
||||
BufferID = SM.addNewSourceBuffer(std::move(BufCopy));
|
||||
|
||||
Parser.reset(new ParserUnit(
|
||||
SM, SourceFileKind::Main, BufferID, CompInv.getLangOptions(),
|
||||
CompInv.getTypeCheckerOptions(), CompInv.getSILOptions(),
|
||||
CompInv.getModuleName()));
|
||||
Parser.reset(new ParserUnit(SM, SourceFileKind::Main, BufferID,
|
||||
CompInv.getLangOptions(),
|
||||
CompInv.getModuleName()));
|
||||
|
||||
registerTypeCheckerRequestFunctions(
|
||||
Parser->getParser().Context.evaluator);
|
||||
|
||||
Reference in New Issue
Block a user