OSDN Git Service

The key of a StringMap can contain nul's in it, so having first() return
authorChris Lattner <sabre@nondot.org>
Thu, 14 Jul 2011 18:31:43 +0000 (18:31 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 14 Jul 2011 18:31:43 +0000 (18:31 +0000)
commitd7c027322ebccd9666c3f46d9a5236ba76fda434
tree6a38fd534fb91d40d986508cbe090e71696c770c
parent154c535888e41a0ee822a2ff76edc57ef91c7aeb
The key of a StringMap can contain nul's in it, so having first() return
const char* doesn't make sense.  Have it return StringRef instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135167 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/StringMap.h
unittests/ADT/StringMapTest.cpp