llvm-c: Don't assert in LLVMTargetMachineEmitToFile on nonexistent file
authorAnders Waldenborg <anders@0x63.nu>
Thu, 17 Oct 2013 10:39:35 +0000 (10:39 +0000)
committerAnders Waldenborg <anders@0x63.nu>
Thu, 17 Oct 2013 10:39:35 +0000 (10:39 +0000)
commit0738387d089d56d0be3a25d5a02bc6609a88bebf
treee14e0e29cd82420d625b59f6bf7bdd8f944ed1b0
parented785629be5a1ad689e2aa4e125781419d824938
llvm-c: Don't assert in LLVMTargetMachineEmitToFile on nonexistent file

Error handling code for raw_fd_ostream constructor is present, but
never used, because formatted_raw_ostream will always assert on closed
fd's before.

Patch by Peter Zotov

Differential Revision: http://llvm-reviews.chandlerc.com/D1909

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192881 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/TargetMachineC.cpp