OSDN Git Service

Be consistent about using "const Twine &" for filenames.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 7 Oct 2014 18:58:55 +0000 (18:58 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 7 Oct 2014 18:58:55 +0000 (18:58 +0000)
commit6477842ceebcab08b7ca07b7ea92a679161fd32f
tree0e2b1748ba6c898d4c609dc27437f89d3e8b8bdd
parent5c98f14b787e476636196939eb4dbfcce8615906
Be consistent about using "const Twine &" for filenames.

On this file we had a mix of
* Twine
* const char *
* StringRef

The two that make sense are
* const Twine & (caller convenience)
* consc char * (that is what will eventually be passed to open.

Given that sys::fs::openFileForRead takes a "const Twine &", I picked that.

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