aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvmc/llvmc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* make all llvm tools call llvm_shutdown when they exit, static'ify some stuff.Chris Lattner2006-12-061-39/+37
| | | | | | | With this change, I can now move -stats to print when llvm_shutdown is called. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32250 91177308-0d34-0410-b5e6-96231b3b80d8
* Use LINK_COMPONENTS to specify *components* to link against instead ofChris Lattner2006-09-041-1/+0
| | | | | | | using USED_LIBS to specify *libraries* to link against. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30090 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR797:Reid Spencer2006-08-211-2/+3
| | | | | | | | | Adjust usage of the ExecuteAndWait function to use the last argument which is the ErrMsg string. This is necessitated because this function no longer throws exceptions on error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29791 91177308-0d34-0410-b5e6-96231b3b80d8
* silly cleanupChris Lattner2006-05-291-19/+19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28543 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate all remaining tabs and trailing spaces.Jeff Cohen2005-07-271-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22523 91177308-0d34-0410-b5e6-96231b3b80d8
* * Use consistent spacing for function argumentsMisha Brukman2005-05-051-18/+18
| | | | | | | * Output single-character strings as chars git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21705 91177308-0d34-0410-b5e6-96231b3b80d8
* std::string(NULL) does not a proper constructor makeMisha Brukman2005-05-031-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21666 91177308-0d34-0410-b5e6-96231b3b80d8
* Omit periods at the end of command-line switch explanations for consistencyMisha Brukman2005-05-031-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21664 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove trailing whitespaceMisha Brukman2005-04-221-11/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21428 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust the help output so that it will fit cleanly within 80 columns.Reid Spencer2005-02-181-17/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20239 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-301-0/+1
| | | | | | | | | | | * Place a try/catch block around the entire tool to Make sure std::string exceptions are caught and printed before exiting the tool. * Make sure we catch unhandled exceptions at the top level so that we don't abort with a useless message but indicate than an unhandled exception was generated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19192 91177308-0d34-0410-b5e6-96231b3b80d8
* Path::get -> Path::toStringReid Spencer2004-12-111-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18785 91177308-0d34-0410-b5e6-96231b3b80d8
* * Adjust the options to make them either accept multiple occurrences or beReid Spencer2004-11-231-5/+22
| | | | | | | | | | optional so that compatibility with GCC is accomplished. * Implement the -print-file-name option in an attempt to provide the same functionality as GCC. Unfortunately, without loading the cpp or c config files, this option won't help much. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18189 91177308-0d34-0410-b5e6-96231b3b80d8
* Get the -o option rightReid Spencer2004-11-201-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18052 91177308-0d34-0410-b5e6-96231b3b80d8
* Stop propagating method names that violate the coding standardReid Spencer2004-11-051-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17498 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate the -F option (for forcing output) .. not neededReid Spencer2004-10-281-6/+10
| | | | | | | Create GCC compatible -Wx, aliases for the existing -T options. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17294 91177308-0d34-0410-b5e6-96231b3b80d8
* Support the -WX, -f -M options as pass throughsReid Spencer2004-09-141-5/+20
| | | | | | | | | Change force option from -f to -F Support the -strip option Make changes to reflect different interface in sys::Program git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16325 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't re-instantiate the std::string in catch block.Reid Spencer2004-09-031-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16159 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes For Bug 352Reid Spencer2004-09-011-1/+1
| | | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16137 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass lists of -I and -D options through to the Compiler Driver.Reid Spencer2004-08-301-0/+17
| | | | | | | Handle -g and -Wxxx for GCC compatibility git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16115 91177308-0d34-0410-b5e6-96231b3b80d8
* Need to throw std::string not const char* if we want error messages to beReid Spencer2004-08-301-3/+3
| | | | | | | caught. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16109 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert llvmc to use the lib/System interface instead of directlyReid Spencer2004-08-291-28/+38
| | | | | | | using Unix operating system calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16089 91177308-0d34-0410-b5e6-96231b3b80d8
* Add the directory specified by LLVM_LIB_SEARCH_PATH to the list ofReid Spencer2004-08-241-0/+6
| | | | | | | directories to be searched during linking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16041 91177308-0d34-0410-b5e6-96231b3b80d8
* Get rid of error messages from CommandLine because -time-passes wasReid Spencer2004-08-241-4/+2
| | | | | | | | defined twice. We make use of the new TimePassesIsEnabled global boolean value from Pass.h to access the value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16033 91177308-0d34-0410-b5e6-96231b3b80d8
* - Unify format of output messagesReid Spencer2004-08-241-7/+10
| | | | | | | | - All errors throw std::string - Default output file name to a.out (if we're linking) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16025 91177308-0d34-0410-b5e6-96231b3b80d8
* Actually let it compile after file name changes.Reid Spencer2004-08-191-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15931 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement many new features for llvmc. This is the first version that willReid Spencer2004-08-191-97/+117
| | | | | | | actually execute actions and it is been shown to optimize a Stacker program git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15912 91177308-0d34-0410-b5e6-96231b3b80d8
* More Functionality:Reid Spencer2004-08-151-9/+20
| | | | | | | | | | | - cleaned up lexical scanner - added support for "lang.optN" configuration items - added temporary file support (ala lib/System) - corrected logic for deciding which phases to run - consolidated the Action and ActionPattern classes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15765 91177308-0d34-0410-b5e6-96231b3b80d8
* Converted to use flex for tokenizing input so we can use an easier toReid Spencer2004-08-141-0/+1
| | | | | | | | understand recursive descent parser, we can easily handle more syntax variety, and we can more easily change the configuration items accepted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15732 91177308-0d34-0410-b5e6-96231b3b80d8
* Additional functionality. This version handles option parsing and parameterReid Spencer2004-08-131-28/+126
| | | | | | | | subsitution correctly for at least .ll and .st files. There's still a long way to go (i.e. this isn't worth of review yet). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15728 91177308-0d34-0410-b5e6-96231b3b80d8
* Move CompilerDriver.h here.Reid Spencer2004-08-101-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15609 91177308-0d34-0410-b5e6-96231b3b80d8
* First "do nothing" version of the LLVM Compiler Driver. This version justReid Spencer2004-08-101-0/+167
processes command line arguments and allows --help to be used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15607 91177308-0d34-0410-b5e6-96231b3b80d8