diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-11-22 06:42:31 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-11-22 06:42:31 +0000 |
| commit | fdabe83c674615aa31633893279bd63172be8736 (patch) | |
| tree | 03c64dd3bf1ae152ff06dc412d8674feea866b48 /clang/lib/Lex | |
| parent | 014156e1088dfd2f76048c5427665bc6878ef504 (diff) | |
| download | bcm5719-llvm-fdabe83c674615aa31633893279bd63172be8736.tar.gz bcm5719-llvm-fdabe83c674615aa31633893279bd63172be8736.zip | |
inline a method into its only two call sites.
llvm-svn: 59860
Diffstat (limited to 'clang/lib/Lex')
| -rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index 5f8f3517fef..7a5174c82ff 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/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 { |

