summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gccld
Commit message (Collapse)AuthorAgeFilesLines
...
* Made code more terse:Misha Brukman2003-09-301-15/+4
| | | | | | | * Deleted empty comment lines * No single begin-braces '{' on a line by themselves llvm-svn: 8773
* Doxygen-ified function comments.Misha Brukman2003-09-301-61/+43
| | | | llvm-svn: 8771
* Removed extra space in comments.Misha Brukman2003-09-301-12/+12
| | | | llvm-svn: 8770
* Remove initials from source fileChris Lattner2003-09-301-2/+1
| | | | llvm-svn: 8769
* Make code more terse:Misha Brukman2003-09-301-69/+38
| | | | | | | | * Remove extra blank lines * Delete space between function call and arg list * Delete non-content comment lines ("//") llvm-svn: 8768
* 1. Use better error messages in LinkFiles().Brian Gaeke2003-09-302-3/+4
| | | | | | | | 2. I think the caller of LinkFiles() should not ignore a true return value. (If you have a good reason why it ought to, feel free to revert this. It's just something that's been bugging me for a while.) llvm-svn: 8760
* Update file headers for renamed files.Chris Lattner2003-09-302-13/+5
| | | | llvm-svn: 8758
* Tersified code:Misha Brukman2003-09-291-39/+33
| | | | | | | | * Removed space between function name and its argument list * Removed space between '&' and variable name * Removed empty comment lines: `//' llvm-svn: 8750
* * Ordered includes according to LLVM programmers' guideMisha Brukman2003-09-291-127/+50
| | | | | | | * Made code layout more verbose: no more '{' on a line by itself * Pruned extra whitespace llvm-svn: 8748
* Minor cleanups:Chris Lattner2003-09-221-38/+15
| | | | | | | | | | | * Local header file goes at top * Remove unneeded #includes * Wrap code at 80 columns * Declare variables where they are used * 'register' is not needed * Use 'unsigned' instead of 'int' variables where possible llvm-svn: 8657
* New header file for gccld.John Criswell2003-09-191-0/+64
| | | | llvm-svn: 8610
* Removed linking functionality from gccld.cpp and moved it to linker.cpp.John Criswell2003-09-195-567/+815
| | | | | | | | | | | | | Renamed functions that were all lower-case. Moved functions from util.cpp into linker.cpp or gccld.cpp. Removed util.h and created gccld.h. Refactored the linker functionality in linker.cpp so that it is easier to follow, easier to modify, and it's library/object file search behavior is easier to understand and document. Added code to include library paths when doing native linking, but this causes problems and is currently #ifdef'd out. llvm-svn: 8609
* Refactored gccld into three C++ source files.John Criswell2003-09-184-313/+606
| | | | | | | Added code ignore bytecode link failures when generating native code. Moved native code and bytecode generation out of the main() function. llvm-svn: 8595
* Replaced the call to strdup() with a new operator followed by a strcpy().John Criswell2003-09-171-1/+2
| | | | | | This should prevent calls to the new oerator and malloc. llvm-svn: 8587
* Added the use of the const keyword.John Criswell2003-09-171-14/+29
| | | | | | Have gccld find the path to llc and gcc instead of having the library do it. llvm-svn: 8586
* Removed the use of the environ variable and instead use the environment arrayJohn Criswell2003-09-171-21/+120
| | | | | | | | | | | | | passed into main(). This may (or may not) be more portable, but it looks nicer. Added functions to copy the environment array and modify the copy, thus preserving the environment. Switched from using system() to using ExecWait(). The code now removes the assembly file generated when using the -native option. Fixed the remove_env() function: The previous revision truncated the environment variable list. This version just zaps the variable as intended. llvm-svn: 8579
* Added the -native option.John Criswell2003-09-161-7/+125
| | | | | | | | With this option, gccld links the program into LLVM bytecode and a native code binary. This allows llvmgcc to correctly tell GNU configure scripts when things aren't defined properly (because the native link will fail). llvm-svn: 8570
* -abort-on-exception is gone. Rebuild your gccld shell scripts, folks! :-)Brian Gaeke2003-09-051-1/+1
| | | | llvm-svn: 8368
* Added code that makes the bytecode file readable (needed by the generated shellJohn Criswell2003-09-021-5/+4
| | | | | | | | | | script). Removed the use of sys/types.h and sys/stat.h. Modified FileExists() so that it uses the access() system call to check for file existance. This requires less header files and might even be a tad bit faster. llvm-svn: 8328
* Modified the code so that it uses the MakeFileExecutable() method. The newJohn Criswell2003-09-021-16/+3
| | | | | | | library code now adds all execute bits that are allowed by the umask value to the file's current permission bits. llvm-svn: 8325
* "Help keep our secrets secret."John Criswell2003-08-291-2/+16
| | | | | | | Added code to respect the umask value. Before, files were generated world readable, which may not be desirable for all installations. llvm-svn: 8215
* add preliminary support for -export-dynamicChris Lattner2003-08-221-0/+3
| | | | llvm-svn: 8058
* Make the bytecode file executable as well for LLEE purposes.Misha Brukman2003-08-201-0/+3
| | | | llvm-svn: 7992
* Revert my last (accidental) checkin, but keep the typeo fixChris Lattner2003-08-151-1/+0
| | | | llvm-svn: 7879
* rename selection library to selectiondagChris Lattner2003-08-151-1/+2
| | | | llvm-svn: 7878
* Run the simplify CFG pass after instcombine which has the effect of deletingChris Lattner2003-06-261-0/+4
| | | | | | ALL of the global ctor/dtor stuff if it is not used! llvm-svn: 6916
* Move the instcombine pass before globaldce, so that if globals are made dead ↵Chris Lattner2003-06-261-4/+4
| | | | | | by instcombine, that they can be deleted. llvm-svn: 6910
* Funcresolve no longer performs nicification of resolved functionsChris Lattner2003-06-191-0/+5
| | | | | | instcombine does this llvm-svn: 6787
* Add new DAE pass to gccld. It does not add cause any regressions in the ↵Chris Lattner2003-06-181-0/+4
| | | | | | test-suite llvm-svn: 6770
* Fix formatting in fileChris Lattner2003-05-291-12/+12
| | | | llvm-svn: 6398
* Add compatibility optionChris Lattner2003-05-271-0/+2
| | | | llvm-svn: 6354
* gccld.cpp:Brian Gaeke2003-05-231-57/+82
| | | | | | | | | | | | | | | | | | | Fix typo in header. Add IsArchive static method. Roll LoadLibraryFromDirectory() into LoadLibrary(), and factor LoadLibraryExactName() out of the result. Instead of treating the current directory specially, just insert it into LibPaths in the beginning of main(). Make LoadLibrary() take a "search" flag that says whether to search for the correct library, or just trust that LibName is right. Make LinkLibrary() take a "search" flag, and pass it to LoadLibrary(). Change the for-loop over InputFilenames to detect ar archives and link them in as libraries without searching. Change the for-loop over Libraries to explicitly turn on the "search" flag to LinkLibrary() that makes LoadLibrary() search for the correct library (i.e., when processing -lNAME options.) llvm-svn: 6316
* Search LLVM_LIB_SEARCH_PATH for objects to allow it to find crtend.oChris Lattner2003-05-131-6/+18
| | | | | | Implement minor library linking optimization. llvm-svn: 6181
* Make sure to create a target data that matches the Module's target properties.Chris Lattner2003-04-241-0/+4
| | | | llvm-svn: 5904
* Add support for allowing the user to extend the GCCLD searchpathChris Lattner2003-04-211-0/+4
| | | | llvm-svn: 5825
* Eliminate useless duplicate librariesChris Lattner2003-04-191-2/+7
| | | | llvm-svn: 5823
* Add first support for linking in .a files correctly and minimally, like a ↵Chris Lattner2003-04-191-67/+238
| | | | | | real linker does llvm-svn: 5822
* Add crufty compatibility stuff for ldChris Lattner2003-04-181-0/+8
| | | | llvm-svn: 5813
* Use anonymous namespace instead of "static"Chris Lattner2003-04-181-36/+36
| | | | | | Kill using decl llvm-svn: 5811
* Allow the user to disable the internalize passChris Lattner2003-04-161-4/+11
| | | | llvm-svn: 5792
* Make stuff compiled with gccld not dump into the debugger if there's a problemChris Lattner2002-12-141-1/+1
| | | | llvm-svn: 5028
* Print the tool name when an error comes from so that I can tell whichChris Lattner2002-07-301-3/+5
| | | | | | tool of a pipeline is having issues. llvm-svn: 3167
* *** empty log message ***Chris Lattner2002-07-251-4/+4
| | | | llvm-svn: 3087
* *** empty log message ***Chris Lattner2002-07-241-2/+0
| | | | llvm-svn: 3044
* *** empty log message ***Chris Lattner2002-07-231-3/+2
| | | | llvm-svn: 3040
* *** empty log message ***Chris Lattner2002-07-231-1/+2
| | | | llvm-svn: 3002
* *** empty log message ***Chris Lattner2002-07-221-11/+23
| | | | llvm-svn: 2985
* YEs, we really do want to sort.Chris Lattner2002-06-301-2/+2
| | | | llvm-svn: 2810
* Changes for 64bit gccAnand Shukla2002-06-251-3/+3
| | | | llvm-svn: 2799
* MEGAPATCH checkin.Chris Lattner2002-06-251-1/+1
| | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt llvm-svn: 2778
OpenPOWER on IntegriCloud