summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gold
Commit message (Collapse)AuthorAgeFilesLines
...
* Avoid renaming loadable modules at install time. Now the gold plugin is namedRafael Espindola2010-05-161-1/+1
| | | | | | LLVMgold.so both in both the build and install directories. llvm-svn: 103897
* Add an also-emit-llvm option to the gold plugin.Rafael Espindola2010-05-131-0/+14
| | | | llvm-svn: 103714
* Revert r64616 which worked around http://gcc.gnu.org/PR42757 , we just didn'tNick Lewycky2010-04-161-4/+2
| | | | | | know it at the time. llvm-svn: 101439
* Create an exports file, so that the plugin only exports the onload symbol.Dan Gohman2010-04-162-0/+3
| | | | llvm-svn: 101431
* Make things static that don't need to be referenced from outside the file.Dan Gohman2010-04-161-12/+12
| | | | llvm-svn: 101430
* make -fno-rtti the default unless a directory builds with REQUIRES_RTTI.Chris Lattner2010-01-241-1/+0
| | | | llvm-svn: 94378
* Stop building RTTI information for *most* llvm libraries. NotableChris Lattner2010-01-221-0/+1
| | | | | | | | | | | missing ones are libsupport, libsystem and libvmcore. libvmcore is currently blocked on bugpoint, which uses EH. Once it stops using EH, we can switch it off. This #if 0's out 3 unit tests, because gtest requires RTTI information. Suggestions welcome on how to fix this. llvm-svn: 94164
* Fix to pass options from Gold plugin to LTO codegenViktor Kutuzov2009-10-281-20/+44
| | | | llvm-svn: 85419
* Include config.h in order to have HAVE_STDINT_H be defined.Duncan Sands2009-10-221-0/+1
| | | | | | | In the latest binutils the plugin-api.h needs this - without it the LLVM gold plugin fails to compile. llvm-svn: 84861
* Fix Makefile to build correctly on Darwin. Patch by Sandeep Patel!Nick Lewycky2009-10-111-2/+3
| | | | llvm-svn: 83813
* Make LLVM command-line tools overwrite their output files without -f.Dan Gohman2009-08-251-1/+1
| | | | | | | | | | | | | | | | This is conventional command-line tool behavior. -f now just means "enable binary output on terminals". Add a -f option to llvm-extract and llvm-link, for consistency. Remove F_Force from raw_fd_ostream and enable overwriting and truncating by default. Introduce an F_Excl flag to permit users to enable a failure when the file already exists. This flag is currently unused. Update Makefiles and documentation accordingly. llvm-svn: 79990
* Change raw_fd_ostream to take flags as an optional bitmask Chris Lattner2009-08-231-4/+3
| | | | | | | | | | | | | | | | instead of as two bools. Use this to add a F_Append flag which has the obvious behavior. Other unrelated changes conflated into this patch: 1. REmove EH stuff from llvm-dis and llvm-as, the try blocks are dead. 2. Simplify the filename inference code in llvm-as/llvm-dis, because raw_fd_ostream does the right thing with '-'. 3. Switch machine verifier to use raw_ostream instead of ostream (Which is the thing that needed append in the first place). llvm-svn: 79807
* Add a Force option to raw_fd_ostream to specify whether openingDan Gohman2009-07-151-1/+3
| | | | | | | | an existing file is considered an error. Convert several tools to use raw_fd_ostream instead of std::ostream, and to use this new option instead of doing a manual check. llvm-svn: 75801
* Add a portable strerror*() wrapper, llvm::sys::StrError(). This includes theJeffrey Yasskin2009-07-011-2/+3
| | | | | | | | Windows variant, strerror_s, but I couldn't test that. I'll update configure and config.h.in in a subsequent patch. llvm-svn: 74621
* remove dead makefile flags.Chris Lattner2009-06-241-1/+0
| | | | llvm-svn: 74065
* Remove the gcc= option. llvm-gcc uses only as=Rafael Espindola2009-06-151-12/+5
| | | | | | | | Look for as in the path. Doing it here instead of llvm-gcc because llvm-gcc has nothing as convenient as sys::Program::FindProgramByName. llvm-svn: 73383
* Add option for specifying the path to assembler, "as". This overrides the pathNick Lewycky2009-06-071-0/+10
| | | | | | to gcc. llvm-svn: 73008
* Make sure the CXXFLAGS setting is picked up byDuncan Sands2009-05-161-2/+2
| | | | | | | the common Makefile. Not sure why this suddenly started causing problems. llvm-svn: 71925
* Allow a user of libLTO to specify the full pathname of the gcc executable toNick Lewycky2009-04-301-0/+10
| | | | | | | | | run when assembling. Wire this up to the gold plugin. You can now pass --plugin-opt gcc=/foo/bar/gcc and it will run that gcc instead of looking for it on the path. llvm-svn: 70490
* Add LTO_SYMBOL_DEFINITION_WEAKUNDEF, use that on the gold plugin.Rafael Espindola2009-04-241-0/+3
| | | | llvm-svn: 69972
* Force 'llvm-config' to go first, optionally followed by lto and gold mixed inNick Lewycky2009-02-261-0/+1
| | | | | | | | | with the rest of the parallel directories. Build lto when possible on all platforms. Make gold to explicitly depend on libLTO. llvm-svn: 65518
* Add an option to the gold plugin to make it emit a file with the public apiNick Lewycky2009-02-221-1/+23
| | | | | | | | | | list that can in turn be passed to -internalize pass through -internalize-public-api-file. Pass gold -plugin-opt=generate-api-file to produce "apifile.txt" in the current directory. llvm-svn: 65295
* really fix styleRafael Espindola2009-02-181-6/+6
| | | | llvm-svn: 64923
* fix styleRafael Espindola2009-02-181-4/+2
| | | | llvm-svn: 64905
* tools like nm and ar only need register_claim_file and add_symbols. Don't abortRafael Espindola2009-02-171-5/+10
| | | | | | if other hooks are missing. llvm-svn: 64812
* Shoot! Remove this debugging line again!Nick Lewycky2009-02-151-2/+0
| | | | llvm-svn: 64617
* Don't discard definitions of common symbols. Not sure if this is the right fix.Nick Lewycky2009-02-151-1/+5
| | | | | | | | | | Before this change, the program: int var; int main(void) { return 0; } when run under 'nm -g' would show 'U var' with the gold plugin and 'B var' with gcc. llvm-svn: 64616
* Free the buffer in the case where we don't create a module out of it, asNick Lewycky2009-02-071-6/+9
| | | | | | | | pointed out by Torok Edwin. Remove trailing whitespaces. llvm-svn: 64002
* Free the buffer.Nick Lewycky2009-02-061-7/+2
| | | | llvm-svn: 63907
* Revert the previous commit. It seems it didn'tDuncan Sands2009-02-051-1/+5
| | | | | | | | | really solve the problem. Also it changed the name from libLLVMgold to LLVMgold (correcting the name resulted in the original problem suddenly reappearing). llvm-svn: 63861
* Stop llvm-config thinking that there are circularDuncan Sands2009-02-051-5/+1
| | | | | | | | dependencies between libraries due to __dso_handle when doing "make install". I don't know what the LINK_COMPONENTS stuff is about, so I left it alone. llvm-svn: 63860
* It's not obvious, but lto_module_create_from_memory doesn't need to use theNick Lewycky2009-02-051-6/+0
| | | | | | | buffer after it creates the Module. Thus, we don't need to store this pointer in claimed_file. llvm-svn: 63834
* Remove accidentally included debug message!Nick Lewycky2009-02-051-6/+4
| | | | | | Reword a comment for clarity. Remove some extra whitespace. llvm-svn: 63823
* Alphabetize includes. Update comment.Torok Edwin2009-02-041-4/+3
| | | | llvm-svn: 63771
* mention that PIC is needed for libLTO and libLLVMgoldTorok Edwin2009-02-041-1/+5
| | | | llvm-svn: 63755
* remove printf - it was there only for debugging!Torok Edwin2009-02-041-1/+0
| | | | llvm-svn: 63742
* add support for .a files containing LLVM IR to the gold pluginTorok Edwin2009-02-041-6/+45
| | | | llvm-svn: 63741
* Add LLVM plugin for gold.Nick Lewycky2009-02-033-0/+373
llvm-svn: 63623
OpenPOWER on IntegriCloud