Use StringRef instead of `const char *`.
authorRui Ueyama <ruiu@google.com>
Mon, 9 Jul 2018 22:26:49 +0000 (22:26 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 9 Jul 2018 22:26:49 +0000 (22:26 +0000)
commit0230f7c763c5b5f988f629506f0ce050fbacaed4
tree5b4087baf5c45a9b459ff0165eca85153a9fd980
parent3fbfa9c40377f1af163070dd4a44d1b39dd661a4
Use StringRef instead of `const char *`.

I don't think there's a need to use `const char *`. In most (probably all?)
cases, we need a length of a name later, so discarding a length will
lead to a wasted effort.

Differential Revision: https://reviews.llvm.org/D49046

llvm-svn: 336612
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugPubTable.h
llvm/lib/DebugInfo/DWARF/DWARFDebugPubTable.cpp