diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-06 23:45:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-06 23:45:49 +0000 |
commit | 065344dfd5a7b3502098810b981eb0077e5d81f3 (patch) | |
tree | 6521b00f224a62ade1e796532e30c6cba5d36633 /tools/llvmc | |
parent | 5499da88331a31a9dcc24dc160f58b411fb0d34a (diff) | |
download | external_llvm-065344dfd5a7b3502098810b981eb0077e5d81f3.zip external_llvm-065344dfd5a7b3502098810b981eb0077e5d81f3.tar.gz external_llvm-065344dfd5a7b3502098810b981eb0077e5d81f3.tar.bz2 |
use the new MemoryBuffer interfaces to simplify error reporting in clients.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36900 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc')
-rw-r--r-- | tools/llvmc/CompilerDriver.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/llvmc/CompilerDriver.cpp b/tools/llvmc/CompilerDriver.cpp index 2f94ee8..b170270 100644 --- a/tools/llvmc/CompilerDriver.cpp +++ b/tools/llvmc/CompilerDriver.cpp @@ -69,8 +69,7 @@ static bool GetBytecodeDependentLibraries(const std::string &fname, Module::LibraryListType& deplibs, std::string* ErrMsg) { ModuleProvider *MP = 0; - if (MemoryBuffer *Buffer = MemoryBuffer::getFileOrSTDIN(&fname[0], - fname.size())) { + if (MemoryBuffer *Buffer = MemoryBuffer::getFileOrSTDIN(fname)) { MP = getBitcodeModuleProvider(Buffer); if (MP == 0) delete Buffer; } |