[cfe-commits] r41783 - /cfe/trunk/include/clang/Lex/Token.h

Chris Lattner sabre at nondot.org
Fri Sep 7 18:29:21 PDT 2007


Author: lattner
Date: Fri Sep  7 20:29:20 2007
New Revision: 41783

URL: http://llvm.org/viewvc/llvm-project?rev=41783&view=rev
Log:
Don't rely on ADL to find this member, patch by Justin Handville

Modified:
    cfe/trunk/include/clang/Lex/Token.h

Modified: cfe/trunk/include/clang/Lex/Token.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/Token.h?rev=41783&r1=41782&r2=41783&view=diff

==============================================================================
--- cfe/trunk/include/clang/Lex/Token.h (original)
+++ cfe/trunk/include/clang/Lex/Token.h Fri Sep  7 20:29:20 2007
@@ -61,7 +61,7 @@
   void setLocation(SourceLocation L) { Loc = L; }
   void setLength(unsigned Len) { Length = Len; }
   
-  const char *getName() const { return getTokenName(Kind); }
+  const char *getName() const { return tok::getTokenName(Kind); }
   
   /// startToken - Reset all flags to cleared.
   ///





More information about the cfe-commits mailing list