Use .data() instead of .c_str() when nul-termination is not needed.
authorDan Gohman <gohman@apple.com>
Fri, 13 Nov 2009 21:55:31 +0000 (21:55 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 13 Nov 2009 21:55:31 +0000 (21:55 +0000)
commit24f8e29b4efe70496474c6d43aa6abfa27c21511
treeda0eb51f0d939fca43d7d85cbde3b9a0c6728853
parenta2b3cdc21f51d0e24310878b0c759ec48b5e6749
Use .data() instead of .c_str() when nul-termination is not needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88703 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/StringRef.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp