diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-19 07:49:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-19 07:49:14 +0000 |
commit | 49c017f4ea6f5795403cb23896a8b6cf4ef5ef6e (patch) | |
tree | 634c52df4e65095e50a38fcadfc4c814142aefc9 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 66e3877b42fea73fde704c45ad340b13516b7e84 (diff) | |
download | bcm5719-llvm-49c017f4ea6f5795403cb23896a8b6cf4ef5ef6e.tar.gz bcm5719-llvm-49c017f4ea6f5795403cb23896a8b6cf4ef5ef6e.zip |
add a new helper method. It is unclear to me why this doesn't work, but GCC
won't match it:
template<std::size_t StrLen>
bool isName(const char Str[StrLen]) const {
return getLength() == StrLen-1 && !memcmp(getName(), Str, StrLen-1);
}
llvm-svn: 59605
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions