mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 18:42:46 +02:00
WriteBytecodeToFile actually can't throw.
llvm-svn: 29397
This commit is contained in:
parent
93ab0e8787
commit
d40991dcf5
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user