mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
give ASTContext a SourceMgr reference, add diagnostic hooks to SemaBase.
Swift SVN r39
This commit is contained in:
@@ -27,9 +27,9 @@ using llvm::SMLoc;
|
||||
// Setup and Helper Methods
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
Parser::Parser(unsigned BufferID, llvm::SourceMgr &SM, ASTContext &Context)
|
||||
: SourceMgr(SM),
|
||||
L(*new Lexer(BufferID, SM)),
|
||||
Parser::Parser(unsigned BufferID, ASTContext &Context)
|
||||
: SourceMgr(Context.SourceMgr),
|
||||
L(*new Lexer(BufferID, SourceMgr)),
|
||||
S(*new Sema(Context)) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user