[llvm-commits] CVS: llvm/tools/llvm-extract/llvm-extract.cpp
Chris Lattner
sabre at nondot.org
Sun May 6 16:46:45 PDT 2007
Changes in directory llvm/tools/llvm-extract:
llvm-extract.cpp updated: 1.39 -> 1.40
---
Log message:
use the new MemoryBuffer interfaces to simplify error reporting in clients.
---
Diffs of the changes: (+1 -2)
llvm-extract.cpp | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: llvm/tools/llvm-extract/llvm-extract.cpp
diff -u llvm/tools/llvm-extract/llvm-extract.cpp:1.39 llvm/tools/llvm-extract/llvm-extract.cpp:1.40
--- llvm/tools/llvm-extract/llvm-extract.cpp:1.39 Sun May 6 04:29:57 2007
+++ llvm/tools/llvm-extract/llvm-extract.cpp Sun May 6 18:45:49 2007
@@ -57,8 +57,7 @@
std::auto_ptr<Module> M;
- MemoryBuffer *Buffer = MemoryBuffer::getFileOrSTDIN(&InputFilename[0],
- InputFilename.size());
+ MemoryBuffer *Buffer = MemoryBuffer::getFileOrSTDIN(InputFilename);
if (Buffer == 0) {
cerr << "Error reading file '" + InputFilename + "'";
return 1;
More information about the llvm-commits
mailing list