[llvm-commits] CVS: llvm/examples/ModuleMaker/Makefile ModuleMaker.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jul 28 15:08:37 PDT 2006
Changes in directory llvm/examples/ModuleMaker:
Makefile updated: 1.10 -> 1.11
ModuleMaker.cpp updated: 1.7 -> 1.8
---
Log message:
WriteBytecodeToFile actually can't throw.
---
Diffs of the changes: (+1 -7)
Makefile | 1 -
ModuleMaker.cpp | 7 +------
2 files changed, 1 insertion(+), 7 deletions(-)
Index: llvm/examples/ModuleMaker/Makefile
diff -u llvm/examples/ModuleMaker/Makefile:1.10 llvm/examples/ModuleMaker/Makefile:1.11
--- llvm/examples/ModuleMaker/Makefile:1.10 Fri Jul 28 16:55:54 2006
+++ llvm/examples/ModuleMaker/Makefile Fri Jul 28 17:08:23 2006
@@ -9,7 +9,6 @@
LEVEL=../..
TOOLNAME=ModuleMaker
EXAMPLE_TOOL = 1
-REQUIRES_EH = 1
USEDLIBS= LLVMBCWriter.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
include $(LEVEL)/Makefile.common
Index: llvm/examples/ModuleMaker/ModuleMaker.cpp
diff -u llvm/examples/ModuleMaker/ModuleMaker.cpp:1.7 llvm/examples/ModuleMaker/ModuleMaker.cpp:1.8
--- llvm/examples/ModuleMaker/ModuleMaker.cpp:1.7 Sun May 14 14:08:39 2006
+++ llvm/examples/ModuleMaker/ModuleMaker.cpp Fri Jul 28 17:08:23 2006
@@ -54,12 +54,7 @@
BB->getInstList().push_back(new ReturnInst(Add));
// Output the bytecode file to stdout
- try {
- WriteBytecodeToFile(M, std::cout);
- } catch (const std::string &Error) {
- std::cerr << "Error writing file: " << Error << "\n";
- return 1;
- }
+ WriteBytecodeToFile(M, std::cout);
// Delete the module and all of its contents.
delete M;
More information about the llvm-commits
mailing list