mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
give ASTContext a SourceMgr reference, add diagnostic hooks to SemaBase.
Swift SVN r39
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
namespace llvm {
|
||||
class BumpPtrAllocator;
|
||||
class SourceMgr;
|
||||
}
|
||||
|
||||
namespace swift {
|
||||
@@ -30,9 +31,12 @@ class ASTContext {
|
||||
void operator=(const ASTContext&); // DO NOT IMPLEMENT
|
||||
llvm::BumpPtrAllocator *Allocator;
|
||||
public:
|
||||
ASTContext();
|
||||
ASTContext(llvm::SourceMgr &SourceMgr);
|
||||
~ASTContext();
|
||||
|
||||
/// SourceMgr - The source manager object.
|
||||
llvm::SourceMgr &SourceMgr;
|
||||
|
||||
Type * const VoidType; /// VoidType - This is 'void'.
|
||||
Type * const IntType; /// IntType - This is 'int'.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user