Finish removal of EH usage from the Archive library. The REQUIRES_EH flag

in lib/Bytecode/Archive/Makefile is now removed. One small step closer to
a smaller LLVM.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29067 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2006-07-07 20:56:50 +00:00
parent 3039b99697
commit 8d8a7ffe58
9 changed files with 306 additions and 154 deletions

View File

@ -463,7 +463,12 @@ Archive::writeToDisk(bool CreateSymbolTable, bool TruncateNames, bool Compress,
// compatibility with other ar(1) implementations as well as allowing the
// archive to store both native .o and LLVM .bc files, both indexed.
if (foreignST) {
writeMember(*foreignST, FinalFile, false, false, false);
if (!writeMember(*foreignST, FinalFile, false, false, false, error)) {
FinalFile.close();
if (TmpArchive.exists())
TmpArchive.eraseFromDisk();
return false;
}
}
// Put out the LLVM symbol table now.