diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-12-11 21:27:55 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-12-11 21:27:55 +0000 |
commit | 7a9d49fd2bfac00e905b361ba76d26ab5b6c3b09 (patch) | |
tree | 3557aeb775ca6ac99524afd56b1c8840b80d7a94 /Basic/TargetInfo.cpp | |
parent | e66894c3dea9aeab4403e67bf5baabc20da61cb3 (diff) |
Mega-patch: ripped SourceManager out of Diagnostic/DiagnosticClient. Now
SourceManager is passed by reference, allowing the SourceManager to be
associated with a specific translation unit, and not the entire execution
of the driver.
Modified all users of Diagnostics to comply with this new interface.
Integrated SourceManager as a member variable of TargetInfo. TargetInfo will
eventually be associated with a single translation unit (just like
SourceManager).
Made the SourceManager reference in ASTContext private. Provided accessor
getSourceManager() for clients to use instead. Modified clients to comply with
new interface.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44878 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Basic/TargetInfo.cpp')
-rw-r--r-- | Basic/TargetInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Basic/TargetInfo.cpp b/Basic/TargetInfo.cpp index fcaeccffc0..63b3cf8462 100644 --- a/Basic/TargetInfo.cpp +++ b/Basic/TargetInfo.cpp @@ -65,7 +65,7 @@ const char *TargetInfo::getTargetPrefix() const { /// non-portable. void TargetInfo::DiagnoseNonPortability(SourceLocation Loc, unsigned DiagKind) { NonPortable = true; - if (Diag && Loc.isValid()) Diag->Report(Loc, DiagKind); + if (Diag && Loc.isValid()) Diag->Report(Loc, DiagKind, SrcMgr); } /// GetTargetDefineMap - Get the set of target #defines in an associative |