aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser
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
commitdd5af27a74a01f0d03356cea15d3a403f4964f8b (patch)
tree39bed0690c95e7d626e02c248a28119099cf07a7 /lib/AsmParser
parentfa34f42fd6628ee0086b753461d54a8b4c18d170 (diff)
downloadexternal_llvm-dd5af27a74a01f0d03356cea15d3a403f4964f8b.zip
external_llvm-dd5af27a74a01f0d03356cea15d3a403f4964f8b.tar.gz
external_llvm-dd5af27a74a01f0d03356cea15d3a403f4964f8b.tar.bz2
keep only the StringRef version of getFileOrSTDIN.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184826 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser')
-rw-r--r--lib/AsmParser/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/Parser.cpp b/lib/AsmParser/Parser.cpp
index bb4f03b..d777ab9 100644
--- a/lib/AsmParser/Parser.cpp
+++ b/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;