aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-bcanalyzer
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 /tools/llvm-bcanalyzer
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 'tools/llvm-bcanalyzer')
-rw-r--r--tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp b/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
index 99479a4..186eea9 100644
--- a/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
+++ b/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
@@ -481,7 +481,7 @@ static int AnalyzeBitcode() {
OwningPtr<MemoryBuffer> MemBuf;
if (error_code ec =
- MemoryBuffer::getFileOrSTDIN(InputFilename.c_str(), MemBuf))
+ MemoryBuffer::getFileOrSTDIN(InputFilename, MemBuf))
return Error("Error reading '" + InputFilename + "': " + ec.message());
if (MemBuf->getBufferSize() & 3)