summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/Parser.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/AsmParser/Parser.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/AsmParser/Parser.cpp')
-rw-r--r--llvm/lib/AsmParser/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/Parser.cpp b/llvm/lib/AsmParser/Parser.cpp
index bb4f03bacc1..d777ab91af8 100644
--- a/llvm/lib/AsmParser/Parser.cpp
+++ b/llvm/lib/AsmParser/Parser.cpp
@@ -43,7 +43,7 @@ Module *llvm::ParseAssembly(MemoryBuffer *F,
Module *llvm::ParseAssemblyFile(const std::string &Filename, SMDiagnostic &Err,
LLVMContext &Context) {
OwningPtr<MemoryBuffer> File;
- if (error_code ec = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), File)) {
+ if (error_code ec = MemoryBuffer::getFileOrSTDIN(Filename, File)) {
Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
"Could not open input file: " + ec.message());
return 0;
OpenPOWER on IntegriCloud