summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
...
* For PR797:Reid Spencer2006-08-212-2/+4
| | | | | | | | Make sys::Program::ExecuteAndWait not throw exceptions and update any affected code. It now return -9999 to signal that the program couldn't be executed. Only one case (in bugpoint) actually examines the result code. llvm-svn: 29785
* remove IncludeFile turds in MathExtras.h, which bloats every .o file thatChris Lattner2006-08-112-13/+9
| | | | | | #includes it. llvm-svn: 29639
* Remove the use of "IncludeFile" from this support facility. The mechanismReid Spencer2006-08-071-3/+0
| | | | | | | to build a loadable module is now correctly defined and documented so this workaround isn't needed any longer. llvm-svn: 29553
* If the Program name was NULL then all further output sent to std::cerr wasJim Laskey2006-08-021-1/+3
| | | | | | suppressed. llvm-svn: 29477
* Finegrainify namespacification, minor cleanupsChris Lattner2006-07-281-8/+2
| | | | llvm-svn: 29399
* Change Path::getStatusInfo to return a boolean and error string on an errorChris Lattner2006-07-281-12/+16
| | | | | | | | 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
* libsupport still throws.Chris Lattner2006-07-281-0/+1
| | | | llvm-svn: 29394
* For PR780:Reid Spencer2006-07-265-20/+13
| | | | | | | | | | | | 1. Move IncludeFile.h to System library 2. Move IncludeFile.cpp to System library 3. #1 and #2 required to prevent cyclic library dependencies for libSystem 4. Convert all existing uses of Support/IncludeFile.h to System/IncludeFile.h 5. Add IncludeFile support to various lib/System classes. 6. Add new lib/System classes to LinkAllVMCore.h All this in an attempt to pull in lib/System to what's required for VMCore llvm-svn: 29287
* Add an out-of-line virtual method to provide a home for the cl::option class.Chris Lattner2006-07-181-0/+4
| | | | llvm-svn: 29191
* Add two helpers for escaping and unescaping strings.Chris Lattner2006-07-141-0/+50
| | | | llvm-svn: 29151
* LoadLibraryPermanently no longer throws an exception, so this code doesn't haveChris Lattner2006-07-071-28/+14
| | | | | | to catch it. Other minor cleanups. llvm-svn: 29050
* This patch (written by Reid) changes compressor to never throw an exception.Chris Lattner2006-07-071-38/+107
| | | | llvm-svn: 29045
* Modify the SlowOperationInformer interface to not throw exceptions.Chris Lattner2006-07-061-3/+4
| | | | llvm-svn: 29028
* Print LLVM version info like this:Chris Lattner2006-07-061-5/+13
| | | | | | | | | | | | | | Low Level Virtual Machine (http://llvm.org/): llvm version 1.8cvs DEBUG build with assertions. instead of like this: Low Level Virtual Machine (llvm) 1.8cvs (see http://llvm.org/) ASSERTIONS ENABLED Also, add a place for vendor version info. llvm-svn: 29020
* For PR801:Reid Spencer2006-06-271-0/+89
| | | | | | | | | Refactor the Graph writing code to use a common implementation which is now in lib/Support/GraphWriter.cpp. This completes the PR. Patch by Anton Korobeynikov. Thanks, Anton! llvm-svn: 28925
* Add some out-of-line virtual dtors so that the class has a "home", preventingChris Lattner2006-06-211-0/+4
| | | | | | vtables for (e.g.) Instruction from being emitted into every .o file. llvm-svn: 28898
* 1. Support standard dwarf format (was bootstrapping in Apple format.)Jim Laskey2006-06-151-0/+7
| | | | | | 2. Add vector support. llvm-svn: 28807
* For PR780:Reid Spencer2006-06-071-0/+20
| | | | | | | | | Break the "IncludeFile" mechanism into its own header file and adjust other files accordingly. Use this facility for the IntrinsicInst problem which was the subject of PR800. More to follow on this. llvm-svn: 28709
* Move toolrunner out of libsupport into the bugpoint toolChris Lattner2006-06-061-514/+0
| | | | llvm-svn: 28700
* Add the -Xlinker option to bugpoint which allows an option to be passedReid Spencer2006-06-061-9/+31
| | | | | | | | | through to gcc when its being used as a linker. This allows -L and -l (and any other) options to be added so that non-complete bytecode files can be processed with bugpoint. The -Xlinker option can be added as many times as needed. llvm-svn: 28692
* Make it possible to override the standard version printer. Not all toolsReid Spencer2006-06-051-18/+29
| | | | | | | | | built with CommandLine.h will want the --version option to report that the tool belongs to LLVM. To override simply pass a void func() to the cl::SetVersionPrinter() function and that void func() will be called when it is time to print the version information. llvm-svn: 28687
* Use archive libraries instead of object files for VMCore, BCReader,Reid Spencer2006-06-011-0/+1
| | | | | | | BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate these changes. This was done to speed up link times. llvm-svn: 28610
* Squelch this warning:Reid Spencer2006-05-311-0/+4
| | | | | | | /bzlib.c:126: warning: string length `1056' is greater than the length `509' ISO C89 compilers are required to support llvm-svn: 28602
* Patches to make the LLVM sources more -pedantic clean. Patch providedChris Lattner2006-05-243-3/+3
| | | | | | by Anton Korobeynikov! This is a step towards closing PR786. llvm-svn: 28447
* For PR777:Reid Spencer2006-05-151-0/+3
| | | | | | | Add an additional catch block to ensure that this function can't throw any exceptions, even one's we're not expecting. llvm-svn: 28309
* Fix PR743: emit -help output of a tool to cout, not cerr.Chris Lattner2006-04-281-20/+20
| | | | llvm-svn: 28010
* Qualify dwarf namespace inside llvm namespace.Jim Laskey2006-02-271-1/+4
| | | | llvm-svn: 26409
* Re-orging file.Jim Laskey2006-02-271-0/+572
| | | | llvm-svn: 26401
* Let bugpoint work on sparc with v9 instructions enabled.Chris Lattner2006-02-041-0/+6
| | | | llvm-svn: 25958
* dynamically allocate plugin space as neededAndrew Lenharth2006-01-261-5/+12
| | | | llvm-svn: 25652
* Remember plugins should someone like bugpoint want to know them.Andrew Lenharth2006-01-261-0/+15
| | | | llvm-svn: 25649
* Add explicit #includes of <iostream>Chris Lattner2006-01-221-0/+1
| | | | llvm-svn: 25509
* Revert this, I didn't mean to commit itChris Lattner2006-01-171-8/+0
| | | | llvm-svn: 25382
* Add support for programs with a null argv[0]Chris Lattner2006-01-172-10/+32
| | | | llvm-svn: 25379
* HP aCC chokes on this, but it's not required anyway: according toDuraid Madina2005-12-261-2/+0
| | | | | | | | the bzip2 homepage, only ancient (gcc 2.7.x ?) versions of GCC require this? It certainly isn't needed for the current bzip2 sources. llvm-svn: 25013
* MERRY CHRISTMAS EVERYONE!!! (what better way to spend christmas thanDuraid Madina2005-12-261-0/+1
| | | | | | | to try building LLVM on HP-UX! (the Right Way seems to be to tear out the ancient STL that HP ship and use http://incubator.apache.org/stdcxx/ ) llvm-svn: 25012
* For PR351:Reid Spencer2005-12-221-43/+6
| | | | | | | Move the system dependent portion to lib/System/*/Alarm.inc. This makes the SlowOperationInformer platform independent. llvm-svn: 24938
* indicate when a tool is a debug build.Chris Lattner2005-11-161-1/+6
| | | | llvm-svn: 24374
* DONT_BUILD_RELINKED is gone and implied by BUILD_ARCHIVE nowChris Lattner2005-10-241-1/+1
| | | | llvm-svn: 23940
* Only build .a file versions of these libraries, instead of .a and .o versions.Chris Lattner2005-10-241-0/+1
| | | | | | This should speed up build times. llvm-svn: 23934
* Allow bugpoint+PPC codegen to use fsqrtChris Lattner2005-08-291-0/+3
| | | | llvm-svn: 23128
* Allow tools with "consume after" options (like lli) to take more positionalChris Lattner2005-08-081-4/+1
| | | | | | | opts than they take directly. Thanks to John C for pointing this problem out to me! llvm-svn: 22717
* Reject command lines that have too many positional arguments passed (e.g.,Chris Lattner2005-08-081-1/+15
| | | | | | | | 'opt x y'). This fixes PR493. Patch contributed by Owen Anderson! llvm-svn: 22705
* 200.sixtrack prints FP numbers with a very strange notation that uses DChris Lattner2005-08-021-3/+21
| | | | | | | instead of E for exponentials (e.g. 1.234D-43). Add support for this notation. llvm-svn: 22574
* Eliminate all remaining tabs and trailing spaces.Jeff Cohen2005-07-271-1/+1
| | | | llvm-svn: 22523
* Final Changes For PR495:Reid Spencer2005-07-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add support for assembling .s files on mac os x for intelNate Begeman2005-07-081-1/+1
| | | | | | Add support for running bugpoint on mac os x for intel llvm-svn: 22351
* For PR495:Reid Spencer2005-07-072-5/+5
| | | | | | | | | | | | | | | | | | | | | 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
* For PR495:Reid Spencer2005-07-071-1/+1
| | | | | | | | | | | Change interface to Path class: readable -> canRead writable -> canWrite executable -> canExecute More (incremental) changes coming to close 495. llvm-svn: 22345
* HP-UX system headers make a mess of isinf(), so much so that gcc fixincludesDuraid Madina2005-05-161-0/+4
| | | | | | can't patch it up for c++ (works in C though) llvm-svn: 22079
OpenPOWER on IntegriCloud