diff options
Diffstat (limited to 'CodeGen')
-rw-r--r-- | CodeGen/CGExprComplex.cpp | 2 | ||||
-rw-r--r-- | CodeGen/CGExprScalar.cpp | 2 | ||||
-rw-r--r-- | CodeGen/CodeGenModule.cpp | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/CodeGen/CGExprComplex.cpp b/CodeGen/CGExprComplex.cpp index 3368c2801d..6263bb7707 100644 --- a/CodeGen/CGExprComplex.cpp +++ b/CodeGen/CGExprComplex.cpp @@ -67,7 +67,7 @@ public: //===--------------------------------------------------------------------===// ComplexPairTy VisitStmt(Stmt *S) { - S->dump(CGF.getContext().SourceMgr); + S->dump(CGF.getContext().getSourceManager()); assert(0 && "Stmt can't have complex result type!"); return ComplexPairTy(); } diff --git a/CodeGen/CGExprScalar.cpp b/CodeGen/CGExprScalar.cpp index d088195db9..9846d81d1e 100644 --- a/CodeGen/CGExprScalar.cpp +++ b/CodeGen/CGExprScalar.cpp @@ -85,7 +85,7 @@ public: //===--------------------------------------------------------------------===// Value *VisitStmt(Stmt *S) { - S->dump(CGF.getContext().SourceMgr); + S->dump(CGF.getContext().getSourceManager()); assert(0 && "Stmt can't have complex result type!"); return 0; } diff --git a/CodeGen/CodeGenModule.cpp b/CodeGen/CodeGenModule.cpp index bd4df467f6..cc8ecd585b 100644 --- a/CodeGen/CodeGenModule.cpp +++ b/CodeGen/CodeGenModule.cpp @@ -40,7 +40,8 @@ void CodeGenModule::WarnUnsupported(const Stmt *S, const char *Type) { "cannot codegen this %0 yet"); SourceRange Range = S->getSourceRange(); std::string Msg = Type; - getDiags().Report(S->getLocStart(), DiagID, &Msg, 1, &Range, 1); + getDiags().Report(S->getLocStart(), DiagID, Context.getSourceManager(), + &Msg, 1, &Range, 1); } /// ReplaceMapValuesWith - This is a really slow and bad function that |