summaryrefslogtreecommitdiffstats
path: root/llvm/utils/FileUpdate/FileUpdate.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/FileUpdate/FileUpdate.cpp
parent37d229de2f350e89e24ee729b207bd21d4c5cb01 (diff)
downloadbcm5719-llvm-8c8117240cf1136cd2310a4bc92bc4e5af2a6604.tar.gz
bcm5719-llvm-8c8117240cf1136cd2310a4bc92bc4e5af2a6604.zip
keep only the StringRef version of getFileOrSTDIN.
llvm-svn: 184826
Diffstat (limited to 'llvm/utils/FileUpdate/FileUpdate.cpp')
-rw-r--r--llvm/utils/FileUpdate/FileUpdate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/FileUpdate/FileUpdate.cpp b/llvm/utils/FileUpdate/FileUpdate.cpp
index 9b48f94948a..6f9544f28e2 100644
--- a/llvm/utils/FileUpdate/FileUpdate.cpp
+++ b/llvm/utils/FileUpdate/FileUpdate.cpp
@@ -45,7 +45,7 @@ int main(int argc, char **argv) {
// Get the input data.
OwningPtr<MemoryBuffer> In;
- if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputFilename.c_str(), In)) {
+ if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputFilename, In)) {
errs() << argv[0] << ": error: Unable to get input '"
<< InputFilename << "': " << ec.message() << '\n';
return 1;
OpenPOWER on IntegriCloud