diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-25 05:28:34 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-25 05:28:34 +0000 |
commit | 8c8117240cf1136cd2310a4bc92bc4e5af2a6604 (patch) | |
tree | a74f7eee2749d31094ff89d85e34a36c8dbd5ea6 /llvm/lib/TableGen/Main.cpp | |
parent | 37d229de2f350e89e24ee729b207bd21d4c5cb01 (diff) | |
download | bcm5719-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.cpp | 2 |
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; |