Skip to content
Commit 49c017f4 authored by Chris Lattner's avatar Chris Lattner
Browse files

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
parent 66e3877b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment