[llvm-commits] CVS: llvm/tools/llvm-nm/llvm-nm.cpp
Chris Lattner
sabre at nondot.org
Sun May 6 16:46:44 PDT 2007
Changes in directory llvm/tools/llvm-nm:
llvm-nm.cpp updated: 1.35 -> 1.36
---
Log message:
use the new MemoryBuffer interfaces to simplify error reporting in clients.
---
Diffs of the changes: (+1 -1)
llvm-nm.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/tools/llvm-nm/llvm-nm.cpp
diff -u llvm/tools/llvm-nm/llvm-nm.cpp:1.35 llvm/tools/llvm-nm/llvm-nm.cpp:1.36
--- llvm/tools/llvm-nm/llvm-nm.cpp:1.35 Sun May 6 04:29:57 2007
+++ llvm/tools/llvm-nm/llvm-nm.cpp Sun May 6 18:45:49 2007
@@ -124,7 +124,7 @@
// Note: Currently we do not support reading an archive from stdin.
if (Filename == "-" || aPath.isBitcodeFile()) {
std::auto_ptr<MemoryBuffer> Buffer(
- MemoryBuffer::getFileOrSTDIN(&Filename[0], Filename.size()));
+ MemoryBuffer::getFileOrSTDIN(Filename, &ErrorMessage));
Module *Result = 0;
if (Buffer.get())
Result = ParseBitcodeFile(Buffer.get(), &ErrorMessage);
More information about the llvm-commits
mailing list