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 | |
| 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')
| -rw-r--r-- | clang/include/clang/Lex/Preprocessor.h | 4 | ||||
| -rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 5 | 
2 files changed, 3 insertions, 6 deletions
diff --git a/clang/include/clang/Lex/Preprocessor.h b/clang/include/clang/Lex/Preprocessor.h index 829a7ada811..ba6fd8bd7a7 100644 --- a/clang/include/clang/Lex/Preprocessor.h +++ b/clang/include/clang/Lex/Preprocessor.h @@ -189,10 +189,6 @@ public:    IdentifierTable &getIdentifierTable() { return Identifiers; }    SelectorTable &getSelectorTable() { return Selectors; } -  inline FullSourceLoc getFullLoc(SourceLocation Loc) const { -    return FullSourceLoc(Loc, getSourceManager()); -  } -      /// SetCommentRetentionState - Control whether or not the preprocessor retains    /// comments in output.    void SetCommentRetentionState(bool KeepComments, bool KeepMacroComments) { 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 {  | 

