Here's the error I'm getting during a build against trunk. The
getTokenName function is defined in the tok namespace. The build
results and the patch are below. After applying the patch, the code
gmake: Entering directory `/llvm-trunk/tools/clang/Basic'
gmake: Nothing to be done for `all'.
gmake: Leaving directory `/llvm-trunk/tools/clang/Basic'
gmake: Entering directory `/llvm-trunk/tools/clang/Lex'
llvm: Compiling IdentifierTable.cpp for Debug build
In file included from
/llvm-trunk/tools/clang/Lex/../include/clang/Lex/Token.h: In member
function 'const char* clang::Token::getName() const':
'getTokenName' was not declared in this scope
gmake: *** [/llvm-trunk/tools/clang/Lex/Debug/IdentifierTable.o] Error 1
gmake: Leaving directory `/llvm-trunk/tools/clang/Lex'
gmake: *** [all] Error 1
$ gcc --version
gcc (GCC) 4.2.2 20070822 (prerelease)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ uname -a
FreeBSD 6.2-STABLE FreeBSD 6.2-STABLE amd64
Here's the patch: