aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* There is no reason to add -load support to LLCChris Lattner2003-12-151-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10483 91177308-0d34-0410-b5e6-96231b3b80d8
* Finegrainify namespacificationChris Lattner2003-12-141-28/+29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10464 91177308-0d34-0410-b5e6-96231b3b80d8
* Add an assertion to make sure we are at least getting argv[0] right.Brian Gaeke2003-12-121-1/+2
| | | | | | | Use a clearer error message when we fail to load a program. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10414 91177308-0d34-0410-b5e6-96231b3b80d8
* Run tailcall elimination in a more logical placeChris Lattner2003-12-111-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10402 91177308-0d34-0410-b5e6-96231b3b80d8
* Make 'opt -o -' work correctly instead of creating a file named './-'Chris Lattner2003-12-101-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10359 91177308-0d34-0410-b5e6-96231b3b80d8
* Added the -h option for compatibility with other linkers.John Criswell2003-12-091-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10335 91177308-0d34-0410-b5e6-96231b3b80d8
* Bugpoint had appalingly bad grammar. Fix some of it.Chris Lattner2003-12-071-4/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10308 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not leave a bunch of crud lying aroundChris Lattner2003-12-071-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10307 91177308-0d34-0410-b5e6-96231b3b80d8
* It is now after pldi. This issue has been fixed, so remove the hackChris Lattner2003-12-071-6/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10306 91177308-0d34-0410-b5e6-96231b3b80d8
* New command line parsing. This isn't as perfect as I would have liked. The ↵Tanya Lattner2003-12-061-58/+247
| | | | | | CommandLine Library needs to be extended, in order to parse the options and allow for optional dashes. In addition, the help option isn't correct since I do the parsing mostly myself. But this is in the ocorrect ar format. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10297 91177308-0d34-0410-b5e6-96231b3b80d8
* be 3.4 happyChris Lattner2003-11-291-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10265 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix compatibility with gcc 3.4Chris Lattner2003-11-291-5/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10262 91177308-0d34-0410-b5e6-96231b3b80d8
* The function resolving pass must be run, even if -disable-opt is specifiedChris Lattner2003-11-281-6/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10250 91177308-0d34-0410-b5e6-96231b3b80d8
* * The return value of LinkLibraries is ignored, so remove it.Chris Lattner2003-11-282-43/+31
| | | | | | | | | * Finegrainify namespacification of Linker.cpp * If linking a library in fails, do not STOP LINKING IN LIBRARIES AND CONTINUE ANYWAY! Instead, just output the warning, and keep going. :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10249 91177308-0d34-0410-b5e6-96231b3b80d8
* I'm gonna be picky and say we don't really need that trailing slash "lib/"Misha Brukman2003-11-241-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10196 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure we ONLY add a `-load' switch to the JIT command line if the file isMisha Brukman2003-11-241-1/+2
| | | | | | | verified as having an ELF header. This fixes PR151. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10195 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not DESTROY programs by default. No wonder bugpoint was not being useful ↵Chris Lattner2003-11-231-11/+7
| | | | | | all this time! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10175 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert the previous patch since it causes lots of miscompilations. :( :(Chris Lattner2003-11-221-4/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10172 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not crash when dealing with invoke and unwind instructions!Chris Lattner2003-11-221-4/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10160 91177308-0d34-0410-b5e6-96231b3b80d8
* Use new interfacesChris Lattner2003-11-221-6/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10159 91177308-0d34-0410-b5e6-96231b3b80d8
* Reorder passes a bit. In particular, it makes sense to run globaldce ↵Chris Lattner2003-11-211-2/+4
| | | | | | | | | IMMEDIATELY after funcresolve. Also, run the mem2reg pass _early_ so that IPCP and DAE actually do stuff. Run instcombine and simplify cfg after this to cleanup the intraprocedural messes we create. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10134 91177308-0d34-0410-b5e6-96231b3b80d8
* When writing out the runner script, add -load=<lib> lines to pull in all theMisha Brukman2003-11-201-1/+18
| | | | | | | shared objects automagically, so it doesn't have to be done by hand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10114 91177308-0d34-0410-b5e6-96231b3b80d8
* Add ability to search only for native shared object, and expose theMisha Brukman2003-11-202-7/+9
| | | | | | | functionality to the rest of gccld. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10113 91177308-0d34-0410-b5e6-96231b3b80d8
* For consistency, removed space between function name and left paren in functionMisha Brukman2003-11-201-15/+15
| | | | | | | call, i.e. [ addPass (...) ] => [ addPass(...) ] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10105 91177308-0d34-0410-b5e6-96231b3b80d8
* * Doxygenified comments, simplifying them and shortening in the processMisha Brukman2003-11-201-67/+43
| | | | | | | * Eliminated extra space git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10104 91177308-0d34-0410-b5e6-96231b3b80d8
* Unbreak the "-" as filename hack.Brian Gaeke2003-11-191-2/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10099 91177308-0d34-0410-b5e6-96231b3b80d8
* Also print an error msg. for files we cannot currently deal with.Brian Gaeke2003-11-191-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10097 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR134, by checking FileOpenable() on each input file before analyzing itsBrian Gaeke2003-11-191-1/+10
| | | | | | | type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10096 91177308-0d34-0410-b5e6-96231b3b80d8
* Only use -Wl,-R. if HAVE_LINK_R.Brian Gaeke2003-11-181-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10066 91177308-0d34-0410-b5e6-96231b3b80d8
* Include Support/FileUtilities.h.Brian Gaeke2003-11-161-13/+24
| | | | | | | | | | | | Print module identifier in DumpSymbolNamesFromModule(). In DumpSymbolNamesFromFile(), check whether it is an archive or a bytecode file, and call the corresponding reader function (ParseBytecodeFile or ReadArchiveFile). Unconditionally set MultipleFiles for archives. Fixes PR117. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10044 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a -verify option to verify the results of gccld passes.Brian Gaeke2003-11-161-43/+63
| | | | | | | Add a -disable-opt option to turn off gccld optimization passes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10040 91177308-0d34-0410-b5e6-96231b3b80d8
* When we find a module we want, in an archive, in verbose mode,Brian Gaeke2003-11-161-6/+13
| | | | | | | | | print out the module's identifier (which should now contain the name of both the archive and the module.) Wrap some lines at 80 cols. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10039 91177308-0d34-0410-b5e6-96231b3b80d8
* As the comments indicate, this is a temporary, repulsive, hackChris Lattner2003-11-131-0/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9982 91177308-0d34-0410-b5e6-96231b3b80d8
* Restore the -llvm optionChris Lattner2003-11-121-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9915 91177308-0d34-0410-b5e6-96231b3b80d8
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-1138-6/+133
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
* Move IsArchive, IsBytecode to FileUtilities. Fix up some method comments.Brian Gaeke2003-11-111-60/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9902 91177308-0d34-0410-b5e6-96231b3b80d8
* 'Tis quite silly to check for a cached version of the entire executable. ThatMisha Brukman2003-11-111-16/+0
| | | | | | | | amounts to checking for a completely-native version. We'll cache on a function-by-function basis instead (in the JIT's CodeEmitter). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9894 91177308-0d34-0410-b5e6-96231b3b80d8
* This version of Linker.cpp works a lot better, but it's a little messy. Sorry.Brian Gaeke2003-11-111-20/+28
| | | | | | | | | Use FileOpenable() instead of FileExists(). Create IsBytecode() predicate -- like IsArchive(), but for bytecode files. Use IsBytecode() before trying to load any file as a bytecode file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9893 91177308-0d34-0410-b5e6-96231b3b80d8
* The caching will not live in LLEE's execve() handler; that's suboptimal.Misha Brukman2003-11-111-8/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9890 91177308-0d34-0410-b5e6-96231b3b80d8
* Give gccld more gutsChris Lattner2003-11-092-2/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9835 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new command line optionChris Lattner2003-11-061-2/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9754 91177308-0d34-0410-b5e6-96231b3b80d8
* Give this header file an Emacs mode-line.Brian Gaeke2003-11-051-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9749 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not assume the first file is a bytecode file. Instead, construct a dummyBrian Gaeke2003-11-051-5/+3
| | | | | | | | | Module and link things into that. Also, fix a typo in an error message. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9748 91177308-0d34-0410-b5e6-96231b3b80d8
* Shorten and correct some function-header comments.Brian Gaeke2003-11-051-53/+28
| | | | | | | | | | | | | | | Make "verbose" output MUCH nicer. Now it tells you when you are linking a bytecode file, or an archive, and whether it's because you called it by name, or because you gave it a -l option, and it says "Trying" before it takes action and prints a message in the past tense afterwards. Make LinkFiles not skip the first file in Files. Make LinkFiles warn you if it can't find a file and LLVM_LIB_SEARCH_PATH is unset. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9747 91177308-0d34-0410-b5e6-96231b3b80d8
* I hate it when bugpoint is all ready to give me a bytecode file, then crashesChris Lattner2003-11-054-25/+35
| | | | | | | | | | | | in final cleanups. Then you had to run the whole mess again with -disable-final-cleanups. This makes bugpoint run the cleanups in a protected environment so that if they crash, bugpoint itself doesn't crash. This makes things much happier, implements a FIXME, and gets rid of YABPO (yet another bugpoint option). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9743 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify the performFinalCleanups interfaceChris Lattner2003-11-054-13/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9740 91177308-0d34-0410-b5e6-96231b3b80d8
* Make -r work, fixing PR 91Chris Lattner2003-11-051-3/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9724 91177308-0d34-0410-b5e6-96231b3b80d8
* If linking a library, do not link other libraries, like libc, into it!Chris Lattner2003-11-031-1/+4
| | | | | | | This fixes lots of annoying warnings and error messages git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9677 91177308-0d34-0410-b5e6-96231b3b80d8
* never print zero executions blocksChris Lattner2003-10-311-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9626 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify codeChris Lattner2003-10-311-7/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9625 91177308-0d34-0410-b5e6-96231b3b80d8