give ASTContext a SourceMgr reference, add diagnostic hooks to SemaBase.

Swift SVN r39
This commit is contained in:
Chris Lattner
2010-07-19 05:13:55 +00:00
parent c5e54442b4
commit 2eeee5faca
6 changed files with 26 additions and 7 deletions

View File

@@ -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'.