aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/FileCheck/FileCheck.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-25 05:28:34 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-25 05:28:34 +0000
commit8c8117240cf1136cd2310a4bc92bc4e5af2a6604 (patch)
treea74f7eee2749d31094ff89d85e34a36c8dbd5ea6 /llvm/utils/FileCheck/FileCheck.cpp
parent37d229de2f350e89e24ee729b207bd21d4c5cb01 (diff)
downloadllvm-8c8117240cf1136cd2310a4bc92bc4e5af2a6604.zip
llvm-8c8117240cf1136cd2310a4bc92bc4e5af2a6604.tar.gz
llvm-8c8117240cf1136cd2310a4bc92bc4e5af2a6604.tar.bz2
keep only the StringRef version of getFileOrSTDIN.
llvm-svn: 184826
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
-rw-r--r--llvm/utils/FileCheck/FileCheck.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp
index 07294a3..5e2d93b 100644
--- a/llvm/utils/FileCheck/FileCheck.cpp
+++ b/llvm/utils/FileCheck/FileCheck.cpp
@@ -667,7 +667,7 @@ static bool ReadCheckFile(SourceMgr &SM,
std::vector<CheckString> &CheckStrings) {
OwningPtr<MemoryBuffer> File;
if (error_code ec =
- MemoryBuffer::getFileOrSTDIN(CheckFilename.c_str(), File)) {
+ MemoryBuffer::getFileOrSTDIN(CheckFilename, File)) {
errs() << "Could not open check file '" << CheckFilename << "': "
<< ec.message() << '\n';
return true;
@@ -1015,7 +1015,7 @@ int main(int argc, char **argv) {
// Open the file to check and add it to SourceMgr.
OwningPtr<MemoryBuffer> File;
if (error_code ec =
- MemoryBuffer::getFileOrSTDIN(InputFilename.c_str(), File)) {
+ MemoryBuffer::getFileOrSTDIN(InputFilename, File)) {
errs() << "Could not open input file '" << InputFilename << "': "
<< ec.message() << '\n';
return 2;