aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-22 06:42:31 +0000
committerChris Lattner <sabre@nondot.org>2008-11-22 06:42:31 +0000
commit9efe9709287801562a3cbe1e5f3ab5dd8175c25b (patch)
tree48e82b4bdbdfb7fdeff12cf61ea207e25a422bc8 /lib/Lex/Preprocessor.cpp
parent30c6476e8ef00caeb3a10ea0228165013a4eb3f3 (diff)
inline a method into its only two call sites.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59860 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r--lib/Lex/Preprocessor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp
index 5f8f3517fe..7a5174c82f 100644
--- a/lib/Lex/Preprocessor.cpp
+++ b/lib/Lex/Preprocessor.cpp
@@ -118,11 +118,12 @@ Preprocessor::~Preprocessor() {
/// the specified Token's location, translating the token's start
/// position in the current buffer into a SourcePosition object for rendering.
DiagnosticBuilder Preprocessor::Diag(SourceLocation Loc, unsigned DiagID) {
- return Diags.Report(getFullLoc(Loc), DiagID);
+ return Diags.Report(FullSourceLoc(Loc, getSourceManager()), DiagID);
}
DiagnosticBuilder Preprocessor::Diag(const Token &Tok, unsigned DiagID) {
- return Diags.Report(getFullLoc(Tok.getLocation()), DiagID);
+ return Diags.Report(FullSourceLoc(Tok.getLocation(), getSourceManager()),
+ DiagID);
}
void Preprocessor::DumpToken(const Token &Tok, bool DumpFlags) const {