|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| 
| 
| | Convert asserts into error messages.
llvm-svn: 32607 | 
| | 
| 
| 
| | llvm-svn: 31986 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | Final commit for this bug. This removes the last EH holdouts in LLVM
and turns off exception support by using the -fno-exceptions option. This
leads to the following reduction in library and executable sizes:
                DEBUG BUILD                RELEASE BUILD
         before     after   delta     before   after    delta
lib    162,328K  157,616K   4,712    17,864K  16,416K  1,448K
bin    571,444K  557,156K  14,288    63,296K   56,996K 6,300K
Debug   Improvement: 19,000K (2.59%)
Release Improvement:  7,748K (9.55%)
llvm-svn: 29882 | 
| | 
| 
| 
| 
| 
| 
| | Remove exception throwing/handling from lib/Bytecode, and adjust its users
to compensate for changes in the interface.
llvm-svn: 29875 | 
| | 
| 
| 
| 
| 
| 
| | Remove exception handling from the bytecode archiver and adjust the llvm-ar
tool to accommodate the new interfaces.
llvm-svn: 29866 | 
| | 
| 
| 
| 
| 
| 
| | Eliminate exception throwing from Path::renamePathOnDisk and adjust its
users correspondingly.
llvm-svn: 29843 | 
| | 
| 
| 
| 
| 
| 
| | Remove exceptions from the Path::create*OnDisk methods. Update their users
to handle error messages via arguments and result codes.
llvm-svn: 29840 | 
| | 
| 
| 
| 
| 
| | a null pointer when there is an error.
llvm-svn: 29827 | 
| | 
| 
| 
| 
| 
| 
| | Adjust to new interface for MappedFile. Note that the new "throw"
statements will be removed later.
llvm-svn: 29818 | 
| | 
| 
| 
| | llvm-svn: 29400 | 
| | 
| 
| 
| 
| 
| 
| 
| | instead of throwing an exception.  This reduces the amount of code that is
exposed to exceptions (e.g. FileUtilities), though it is clearly only one step
along the way.
llvm-svn: 29395 | 
| | 
| 
| 
| | llvm-svn: 29393 | 
| | 
| 
| 
| 
| 
| 
| | in lib/Bytecode/Archive/Makefile is now removed. One small step closer to
a smaller LLVM.
llvm-svn: 29067 | 
| | 
| 
| 
| | llvm-svn: 29066 | 
| | 
| 
| 
| | llvm-svn: 29043 | 
| | 
| 
| 
| 
| 
| | created by reading the symbol table.
llvm-svn: 28251 | 
| | 
| 
| 
| 
| 
| | not a legal path on Windows.
llvm-svn: 28153 | 
| | 
| 
| 
| | llvm-svn: 25023 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | file to become corrupted due to interactions between mmap'd memory segments
and file descriptors closing. The problem is completely avoiding by using
a third temporary file.
Patch provided by Evan Jones
llvm-svn: 24527 | 
| | 
| 
| 
| | llvm-svn: 23940 | 
| | 
| 
| 
| 
| 
| 
| | an llvm-ranlib symtab.  This speeds up gccld -native on an almost empty .o file
from 1.63s to 0.18s.
llvm-svn: 23406 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | This chagne just renames some sys::Path methods to ensure they are not
misused. The Path documentation now divides methods into two dimensions:
Path/Disk and accessor/mutator. Path accessors and mutators only operate
on the Path object itself without making any disk accesses. Disk accessors
and mutators will also access or modify the file system. Because of the
potentially destructive nature of disk mutators, it was decided that all
such methods should end in the work "Disk" to ensure the user recognizes
that the change will occur on the file system. This patch makes that
change. The method name changes are:
makeReadable        -> makeReadableOnDisk
makeWriteable       -> makeWriteableOnDisk
makeExecutable      -> makeExecutableOnDisk
setStatusInfo       -> setStatusInfoOnDisk
createDirectory     -> createDirectoryOnDisk
createFile          -> createFileOnDisk
createTemporaryFile -> createTemporaryFileOnDisk
destroy             -> eraseFromDisk
rename              -> renamePathOnDisk
These changes pass the Linux Deja Gnu tests.
llvm-svn: 22354 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | Get rid of the difference between file paths and directory paths. The Path
class now simply stores a path that can refer to either a file or a
directory. This required various changes in the implementation and interface
of the class with the corresponding impact to its users. Doxygen comments were
also updated to reflect these changes. Interface changes are:
appendDirectory -> appendComponent
appendFile -> appendComponent
elideDirectory -> eraseComponent
elideFile -> eraseComponent
elideSuffix -> eraseSuffix
renameFile -> rename
setDirectory -> set
setFile -> set
Changes pass Dejagnu and llvm-test/SingleSource tests.
llvm-svn: 22349 | 
| | 
| 
| 
| | llvm-svn: 21704 | 
| | 
| 
| 
| | llvm-svn: 21416 | 
| | 
| 
| 
| | llvm-svn: 21405 | 
| | 
| 
| 
| 
| 
| 
| | the newly implemented sys::Process::GetCurrentUserId function. Replace
similarly for getgid.
llvm-svn: 21402 | 
| | 
| 
| 
| 
| 
| | Patch by Markus Oberhumer.  Thanks!
llvm-svn: 21369 | 
| | 
| 
| 
| | llvm-svn: 21368 | 
| | 
| 
| 
| 
| 
| 
| | bytecode file members or not.
Patch Contributed By Adam Treat
llvm-svn: 20338 | 
| | 
| 
| 
| | llvm-svn: 19863 | 
| | 
| 
| 
| | llvm-svn: 19751 | 
| | 
| 
| 
| | llvm-svn: 19172 | 
| | 
| 
| 
| | llvm-svn: 19056 | 
| | 
| 
| 
| 
| 
| 
| | * Remove #inclusion of FileUtilities.h, not needed any more.
* Convert getUniqueFilename -> sys::Pat::makeUnique()
llvm-svn: 18948 | 
| | 
| 
| 
| | llvm-svn: 18869 | 
| | 
| 
| 
| | llvm-svn: 18853 | 
| | 
| 
| 
| | llvm-svn: 18785 | 
| | 
| 
| 
| | llvm-svn: 18300 | 
| | 
| 
| 
| | llvm-svn: 18249 | 
| | 
| 
| 
| | llvm-svn: 18179 | 
| | 
| 
| 
| | llvm-svn: 18044 | 
| | 
| 
| 
| 
| 
| 
| 
| | member's size. It is based on the oddness/evenness of the file pointer.
This fixes a bug with llvm-ar not being able to read archives produced by
llvm-ranlib when there are members with odd long file name lengths.
llvm-svn: 17997 | 
| | 
| 
| 
| | llvm-svn: 17981 | 
| | 
| 
| 
| 
| 
| | eliminate symbols defined by the archive efficiently
llvm-svn: 17976 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | * ensure trailing spaces are eliminated so they don't factor into the
  length of a member's name.
* make sure all the bytes of a name are written even if the name ends in
  multiple null characters (bug in OSX ar)
* make sure we provide the full member name when searching for symbols so
  the module name is not accidentally duplicated.
llvm-svn: 17918 | 
| | 
| 
| 
| 
| 
| | name of the module: "Archive.a(object.o)"
llvm-svn: 17917 | 
| | 
| 
| 
| | llvm-svn: 17910 | 
| | 
| 
| 
| 
| 
| 
| | *do* include the length of the long file in the length of the member and
they are *not* null terminated.
llvm-svn: 17909 | 
| | 
| 
| 
| | llvm-svn: 17892 |