WriteBytecodeToFile actually can't throw.

llvm-svn: 29397
This commit is contained in:
Chris Lattner
2006-07-28 22:08:23 +00:00
parent 5d836f3f49
commit 5dbafa8aad
2 changed files with 1 additions and 7 deletions

View File

@@ -54,12 +54,7 @@ int main() {
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;