mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-27 13:29:37 +00:00
keep only the StringRef version of getFileOrSTDIN.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184826 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -45,7 +45,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
// Get the input data.
|
||||
OwningPtr<MemoryBuffer> In;
|
||||
if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputFilename.c_str(), In)) {
|
||||
if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputFilename, In)) {
|
||||
errs() << argv[0] << ": error: Unable to get input '"
|
||||
<< InputFilename << "': " << ec.message() << '\n';
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user