]> granicus.if.org Git - clang/commitdiff
inline a method into its only two call sites.
authorChris Lattner <sabre@nondot.org>
Sat, 22 Nov 2008 06:42:31 +0000 (06:42 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 22 Nov 2008 06:42:31 +0000 (06:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59860 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/Preprocessor.h
lib/Lex/Preprocessor.cpp

index 829a7ada8117470b937d278b4f8ed6aeac628037..ba6fd8bd7a764eb16dd651dba86fd2db5f80704a 100644 (file)
@@ -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) {
index 5f8f3517feff4e4c70284f34c442a13cce2e3633..7a5174c82ffa2a29abddb226e53a6a1a28f7796b 100644 (file)
@@ -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 {