summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen/Main.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/lib/TableGen/Main.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/lib/TableGen/Main.cpp')
-rw-r--r--llvm/lib/TableGen/Main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/TableGen/Main.cpp b/llvm/lib/TableGen/Main.cpp
index dc4167b305c..7fe47bcb7e4 100644
--- a/llvm/lib/TableGen/Main.cpp
+++ b/llvm/lib/TableGen/Main.cpp
@@ -83,7 +83,7 @@ int TableGenMain(char *argv0, TableGenMainFn *MainFn) {
// Parse the input file.
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 1;
OpenPOWER on IntegriCloud