mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-21 12:38:45 +00:00
WriteBytecodeToFile actually can't throw.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29397 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c847f7caec
commit
4645cdca8a
@ -9,7 +9,6 @@
|
|||||||
LEVEL=../..
|
LEVEL=../..
|
||||||
TOOLNAME=ModuleMaker
|
TOOLNAME=ModuleMaker
|
||||||
EXAMPLE_TOOL = 1
|
EXAMPLE_TOOL = 1
|
||||||
REQUIRES_EH = 1
|
|
||||||
USEDLIBS= LLVMBCWriter.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
|
USEDLIBS= LLVMBCWriter.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
@ -54,12 +54,7 @@ int main() {
|
|||||||
BB->getInstList().push_back(new ReturnInst(Add));
|
BB->getInstList().push_back(new ReturnInst(Add));
|
||||||
|
|
||||||
// Output the bytecode file to stdout
|
// Output the bytecode file to stdout
|
||||||
try {
|
WriteBytecodeToFile(M, std::cout);
|
||||||
WriteBytecodeToFile(M, std::cout);
|
|
||||||
} catch (const std::string &Error) {
|
|
||||||
std::cerr << "Error writing file: " << Error << "\n";
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete the module and all of its contents.
|
// Delete the module and all of its contents.
|
||||||
delete M;
|
delete M;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user