Add overloads for getFile and getFileOrSTDIN which take a const char *
authorDan Gohman <gohman@apple.com>
Thu, 24 Jun 2010 16:25:50 +0000 (16:25 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 24 Jun 2010 16:25:50 +0000 (16:25 +0000)
commit60e6f3d4123a01babeb2c1a0e00d0a2b109008e5
tree4bc3b68943635f63f61948b5519afca6240213d2
parent8df08017d81ef3749acdc3234e3f33c15a6d0def
Add overloads for getFile and getFileOrSTDIN which take a const char *
instead of a StringRef, avoiding the need to copy the string in the
common case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106754 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/MemoryBuffer.h
lib/Support/MemoryBuffer.cpp