9421406aada374f79ce2f8e576824463f7830981 |
23-Dec-2011 |
Dylan Noblesmith <nobled@dreamwidth.org> |
drop unneeded config.h includes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147197 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
60e06d6ac2b9943537e2e22c3dfc324ae71b23e3 |
23-Nov-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Point to libLTO with -L/PATH/ -lLTO so that it is found in the install directory. Patch by Markus Trippelsdorf. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145095 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
5d0f76199b4616b28b22013d84a3f5b0e303362e |
05-Nov-2011 |
Peter Collingbourne <peter@pcc.me.uk> |
Use absolute path to exportsfile in gold plugin CMake build. (Ninja generator requirement.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143783 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
8c39c9647da4f375e4f89bd417d86f5c3ff6dfa5 |
18-Oct-2011 |
Daniel Dunbar <daniel@zuster.org> |
build: Tidy up a bunch of tool Makefiles, and simplify where possible using the new all-targets pseudo-component. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142401 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
71280b55a3406c7dd4215449bf4a3ab216e78ffd |
16-Sep-2011 |
Ivan Krasin <krasin@chromium.org> |
use 64-bit types instead of off_t/size_t to avoid the issue when gold plugin is built with Large File Support (sizeof(off_t) == 64 on i686) and the rest of LLVM is built w/o Large File Support (sizeof(off_t) == 32 on i686) which corrupts the stack. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139873 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
ccb7c906d1a2237c6dca4f4e8fbc4d7dca89979a |
12-Sep-2011 |
Ivan Krasin <krasin@chromium.org> |
gold plugin: don't report error on non-bitcode (e.g. ELF) files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139544 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
c170f5f31cd697818bf470b57b72c11a1da78010 |
09-Sep-2011 |
Ivan Krasin <krasin@chromium.org> |
gold plugin: report errors occured in lto_module_create_from_* git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139340 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
5e0ac58bef2632a804358ec42a6ba5c6be42c450 |
26-Jul-2011 |
Nick Lewycky <nicholas@mxc.ca> |
Don't try to dereference syms[0] on an empty vector. Reported by Todd Jackson and Jeffrey Bosboom! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136066 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
5d98c9ae71b824537e690fa726d5f078ec4ce219 |
31-May-2011 |
Nick Lewycky <nicholas@mxc.ca> |
Also remove -lLTO which should have been in r132349. I failed to apply this from David Meyer's patch! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132352 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
471fa149d10abfa02a5f2d20e4bba621b224c930 |
31-May-2011 |
Nick Lewycky <nicholas@mxc.ca> |
Make the gold plugin build on Cygwin as well as Linux. Patch by David Meyer! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132349 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
be5d9b0bdcc47fc022e2bc6e75c0977f782b2dd1 |
12-May-2011 |
Oscar Fuentes <ofv@wanadoo.es> |
CMake builds gold by default since revision 127466. This is inconsistent with autoconf, which by default set BINUTILS_INCDIR to empty and exclude gold from target list. Based on a patch by Haitao Li! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131229 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
2abb82b1d3bc31d75b7c03d76f7343d450f7b394 |
04-May-2011 |
Duncan Sands <baldrick@free.fr> |
Remove an unused variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130860 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
e578252c27a85f3e63eb749006def6d0ce5ef1e1 |
07-Apr-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
If present, use gold's support for getting a file view. This prevents having to map the file both in the linker and in the plugin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129109 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
6421a8815e14189121a5e20731fd005ea08793e1 |
22-Mar-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add a lto_codegen_compile_to_file to avoid producing a file, reading it to memory and writing it back to disk. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128108 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
f21b1058a194f411000bdd8000a8b675a7874056 |
17-Mar-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add support in the LTO library for loading an object from the middle of an file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127781 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
4839ded3bdf83a47c581b818e295669533cc9a9b |
11-Mar-2011 |
Oscar Fuentes <ofv@wanadoo.es> |
Force re-linking of LLVMgold.so when its exports file changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127473 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
aa1fbb40ad432479972971cc877cb4109bd59649 |
11-Mar-2011 |
Oscar Fuentes <ofv@wanadoo.es> |
Fix processing of gold.exports. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127471 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
1dc550b383277f241f46a60628ae3f200769f13c |
11-Mar-2011 |
Oscar Fuentes <ofv@wanadoo.es> |
Add LTO and gold plugin to the CMake build. Linux-only, support for other systems pending. PR9456. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127466 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
d36fb9b5d44b5df27e3d6559e04d44f2cbc6be94 |
27-Feb-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Gold now rescans archives as needed, so the pass-through options are not necessary anymore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126580 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
35358e02bbd584af79132df82ad346c2e32cae21 |
27-Feb-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
bfd was fixed, remove the work around. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126579 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
981b1c4c62054e4e39570a9230c0318f13f9a0a9 |
26-Feb-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
LTO uses MC now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126546 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
8e04fc3adf3419eeb9466b66cbaf9b027dcc2cab |
20-Feb-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Dispose modules early and only create codegen when the plugin is being used by the linker and not by nm or ar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126089 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
37d42f8a5072bfd216445b8c1f983686dea0ea1c |
19-Feb-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add modules to codegen as soon as possible. This reduces the link time of libxul from 12m31.084s to 7m1.359s. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126052 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
5a287d7a03ebf56c85de05968548aa2826a5886b |
16-Feb-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add a debug obj-path option to make it easy to keep the .o produce by LTO. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125663 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
5d618ef7f1ad005fc6912f3e9a08c044b082e47f |
14-Feb-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Switch llvm to using comdats. For now always use groups with a single section. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125526 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
b4cc031a3e1306fea74c9211d50c5cde6d9a8cd5 |
08-Feb-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't open the file again in the gold plugin. To be able to do this, update MemoryBuffer::getOpenFile to not close the file descriptor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125128 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
8b1659e8bf957f09da5cf912ad2702b3366e4c08 |
20-Jan-2011 |
Michael J. Spencer <bigcheesegs@gmail.com> |
gold: MinGW fix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123886 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
53ca1f3190680f3e86aebe0f72f7918d63f71e0d |
29-Nov-2010 |
Charles Davis <cdavis@mines.edu> |
Now to chant the magical incantation that will exorcise the System library from LLVM forever: grep -lR "llvm/System" * | grep -v .svn | xargs sed -ie 's#llvm/System#llvm/Support#g' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120314 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
3cc52ea33c0b96d1682f14fc45c45b57df0f39b6 |
29-Nov-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
I swear I did a make clean and make before committing all this... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120304 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
e4f1a9b8a272ff7452759019ee7774e9dbdf1568 |
07-Oct-2010 |
Dan Gohman <gohman@apple.com> |
Move tool_output_file into its own file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115973 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
49c193cc74884347f68c8cb9a526861227a120de |
10-Sep-2010 |
NAKAMURA Takumi <geek4civic@gmail.com> |
Don't build redundant libLLVMgold.a. Building archive would be executed due to definition of BUILD_ARCHIVE, even if BUILD_ARCHIVE = "0". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113578 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
59b4d2a371e2a37db2876bc57db19475c7a1c527 |
02-Sep-2010 |
Nick Lewycky <nicholas@mxc.ca> |
Fix compile errors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112808 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
f29140106f74d15ba357aa0a7f109adc939c3104 |
20-Aug-2010 |
Dan Gohman <gohman@apple.com> |
Convert tools to use tool_output_file, and introduce error checking to places which previously lacked it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111651 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
2d643ef32891859ec73b6eea2959748f5ebc3af7 |
11-Aug-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Make it possible to set the cpu used for codegen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110759 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
98197e55c10176c3ef9100f7d852abbd2347225f |
10-Aug-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Make it possible to set the flags passed to the assembler. Nick, please review. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110705 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
15af387bffbf8e1fbab720fd0b92291bb68c023b |
10-Aug-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fix silly bug. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110684 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
cbb170d057aa6692b19f577b1e09a6c1c7a26969 |
09-Aug-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Make it possible to set the target triple and expose that with an option in the gold plugin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110604 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
53843f8edb1ff86f29a1857bb8015deb7cadbce2 |
08-Aug-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
s/libLLVMgold/LLVMgold/g git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110552 91177308-0d34-0410-b5e6-96231b3b80d8
EADME.txt
|
51370298b848f215762bd8203afa64d0e2c89581 |
29-Jun-2010 |
Duncan Sands <baldrick@free.fr> |
Remove variables that are written by not read. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107126 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
11f403cf2be4d562f731571aee90bc25bd2d38ae |
23-Jun-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add an extra-library-path option to the plugin. This is used to support having a library both as bitcode and native code. We want to use the bitcode first, but if codegen produces new undefined references we have to use the native code to satisfy those references. Gold has no notion of bitcode and native search directories, so instead it has an API where the plugin can instruct it to look for the libraries it is passing to it. This patch uses that API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106674 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
bebb640b6b495b89f37dde7921f88f24deaf00be |
21-Jun-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
add_input_file and add_input_library now take const arguments, remove the const_cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106410 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
dd76f18f90f3d9934353d852e45271b3be747743 |
18-Jun-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add a pass-through option to the plugin. The use case for this option is to ask the linker to take another look into some library or object. The case when one might want to do this is when codegen introduces a new undefined reference. The canonical example is libgcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106303 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
38a979bf95db020094769194651b91291ca0220c |
14-Jun-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't produce output only if *all* files are unused. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105962 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
221aec60a7feb5fa14e7c2539617909855623ac1 |
07-Jun-2010 |
Nick Lewycky <nicholas@mxc.ca> |
Plug a leak in the non-error case by removing one level of indirection. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105556 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
6c8099243a0d8ff710e8f657628a8bea99b5dd07 |
07-Jun-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Misc cleanups to the gold plugin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105534 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
c4b55610d8cdd58e09b570c33c7484a60e500389 |
03-Jun-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add a emit-llvm option to the plugin and make the path argument to also-emit-llvm optional. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105414 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
662f738ec3f9f4c77052b5a593cb30c28069713e |
03-Jun-2010 |
Nick Lewycky <nicholas@mxc.ca> |
Perfer !string.empty() over string != "". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105397 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
fc55defb308aa994fae446f66ebc5a197263b81e |
03-Jun-2010 |
Nick Lewycky <nicholas@mxc.ca> |
Whitespace cleanup. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105395 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
c72f8e9f9d5b7a9c1717428f02ba30ad3f401799 |
03-Jun-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't preserve all symbols in a .so and instead trust gold to know what is needed. The result is that now we are able to drop unnecessary symbol from shared libraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105389 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
bbe03f8d296a0b92344d6ff0d898380b7bef78d5 |
16-May-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Avoid renaming loadable modules at install time. Now the gold plugin is named LLVMgold.so both in both the build and install directories. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103897 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
62bacd69c2a21d55c308fb3e94e550559762b32c |
13-May-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add an also-emit-llvm option to the gold plugin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103714 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
4b67bc1e80a94ccceebda899e889e15c6c6c45ba |
16-Apr-2010 |
Nick Lewycky <nicholas@mxc.ca> |
Revert r64616 which worked around http://gcc.gnu.org/PR42757 , we just didn't know it at the time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101439 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
aa08c55e1834acb64a6dbaf2392d87feb2e9f7ba |
16-Apr-2010 |
Dan Gohman <gohman@apple.com> |
Create an exports file, so that the plugin only exports the onload symbol. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101431 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
old.exports
|
f6920033e0ad2cd1e18d52dd56d0e8a3384faf72 |
16-Apr-2010 |
Dan Gohman <gohman@apple.com> |
Make things static that don't need to be referenced from outside the file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101430 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
43b5f9312d56be400af031f7487a99b75b7b0f97 |
24-Jan-2010 |
Chris Lattner <sabre@nondot.org> |
make -fno-rtti the default unless a directory builds with REQUIRES_RTTI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94378 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
e73a31f667ad2fe03e25c97ac45b58c30d7f07c3 |
22-Jan-2010 |
Chris Lattner <sabre@nondot.org> |
Stop building RTTI information for *most* llvm libraries. Notable 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94164 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
5c00b4af61bb6abff2fb28ddd904808623a7db23 |
28-Oct-2009 |
Viktor Kutuzov <vkutuzov@accesssoftek.com> |
Fix to pass options from Gold plugin to LTO codegen git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85419 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
09b5d90429258f92f5e5ac98411a71460bcd9230 |
22-Oct-2009 |
Duncan Sands <baldrick@free.fr> |
Include config.h in order to have HAVE_STDINT_H be defined. In the latest binutils the plugin-api.h needs this - without it the LLVM gold plugin fails to compile. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84861 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
c469e9fd22e83e3e52b93d2570af3f47419778dd |
12-Oct-2009 |
Nick Lewycky <nicholas@mxc.ca> |
Fix Makefile to build correctly on Darwin. Patch by Sandeep Patel! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83813 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
baa26395ccf17fc988bb9cf62d6659ca8415ece9 |
25-Aug-2009 |
Dan Gohman <gohman@apple.com> |
Make LLVM command-line tools overwrite their output files without -f. 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79990 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
17e9edc4a7bbeadf756494cf39fcacc9eff72202 |
23-Aug-2009 |
Chris Lattner <sabre@nondot.org> |
Change raw_fd_ostream to take flags as an optional bitmask 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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79807 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
a1bdcedc3879510a874d24c450e07feb170d9cd6 |
15-Jul-2009 |
Dan Gohman <gohman@apple.com> |
Add a Force option to raw_fd_ostream to specify whether opening 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75801 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
ed1c0ffe0b2287deaee7cba7506c93aa34c6d4b7 |
01-Jul-2009 |
Jeffrey Yasskin <jyasskin@google.com> |
Add a portable strerror*() wrapper, llvm::sys::StrError(). This includes the Windows variant, strerror_s, but I couldn't test that. I'll update configure and config.h.in in a subsequent patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74621 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
929a49356e2b95ac5a054bb53697e67f2a0bc43e |
24-Jun-2009 |
Chris Lattner <sabre@nondot.org> |
remove dead makefile flags. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74065 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
42de34f013ee15377dd78aa0d827100166cb66c9 |
15-Jun-2009 |
Rafael Espindola <rafael.espindola@gmail.com> |
Remove the gcc= option. llvm-gcc uses only as= Look for as in the path. Doing it here instead of llvm-gcc because llvm-gcc has nothing as convenient as sys::Program::FindProgramByName. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73383 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
a9b9032df155fde9855307483f8e0b621f8730d7 |
07-Jun-2009 |
Nick Lewycky <nicholas@mxc.ca> |
Add option for specifying the path to assembler, "as". This overrides the path to gcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73008 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
10287438e1d67df31f6c8279052fbfc724b34497 |
16-May-2009 |
Duncan Sands <baldrick@free.fr> |
Make sure the CXXFLAGS setting is picked up by the common Makefile. Not sure why this suddenly started causing problems. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71925 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
195bea3498a7de1d84ace6d4685f02d4d7485468 |
30-Apr-2009 |
Nick Lewycky <nicholas@mxc.ca> |
Allow a user of libLTO to specify the full pathname of the gcc executable to 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70490 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
7431af050f287011fd52e64034ede6dd98193feb |
24-Apr-2009 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add LTO_SYMBOL_DEFINITION_WEAKUNDEF, use that on the gold plugin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69972 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
dcd158af278ec19be6d608acb4e358d36903c86f |
26-Feb-2009 |
Nick Lewycky <nicholas@mxc.ca> |
Force 'llvm-config' to go first, optionally followed by lto and gold mixed in with the rest of the parallel directories. Build lto when possible on all platforms. Make gold to explicitly depend on libLTO. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65518 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
ca4286295f7db200724cb488a04ad15441a8ba99 |
22-Feb-2009 |
Nick Lewycky <nicholas@mxc.ca> |
Add an option to the gold plugin to make it emit a file with the public api 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65295 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
6210a9493a25a9f97f4f0ec62a3ed8ca00f72423 |
18-Feb-2009 |
Rafael Espindola <rafael.espindola@gmail.com> |
really fix style git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64923 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
98c507ed5c2883bc8ef487d952e851da37f8b32f |
18-Feb-2009 |
Rafael Espindola <rafael.espindola@gmail.com> |
fix style git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64905 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
f163a957057339163c3dee24bce21911fb4dcdf5 |
17-Feb-2009 |
Rafael Espindola <rafael.espindola@gmail.com> |
tools like nm and ar only need register_claim_file and add_symbols. Don't abort if other hooks are missing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64812 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
45eb7865c924001e09bb2049708d4f1576ac23d4 |
15-Feb-2009 |
Nick Lewycky <nicholas@mxc.ca> |
Shoot! Remove this debugging line again! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64617 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
e0afaa301d763096af400ef44714b0f4deb5b68b |
15-Feb-2009 |
Nick Lewycky <nicholas@mxc.ca> |
Don't discard definitions of common symbols. Not sure if this is the right fix. 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64616 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
0df91b2c8677f3f8fd25b46953051c9d95c1c1ae |
07-Feb-2009 |
Nick Lewycky <nicholas@mxc.ca> |
Free the buffer in the case where we don't create a module out of it, as pointed out by Torok Edwin. Remove trailing whitespaces. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64002 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
ea97aa6129fc89292e215d01fa66504195f1a969 |
06-Feb-2009 |
Nick Lewycky <nicholas@mxc.ca> |
Free the buffer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63907 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
7a2e7e5c2054cac76dc80c23b68a294aebf34259 |
05-Feb-2009 |
Duncan Sands <baldrick@free.fr> |
Revert the previous commit. It seems it didn't really solve the problem. Also it changed the name from libLLVMgold to LLVMgold (correcting the name resulted in the original problem suddenly reappearing). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63861 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
105de28dabdc79486afab046ebe2aff45fd86236 |
05-Feb-2009 |
Duncan Sands <baldrick@free.fr> |
Stop llvm-config thinking that there are circular 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63860 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
98245c7060a0a5399ca9e53f25541a5751ce4689 |
05-Feb-2009 |
Nick Lewycky <nicholas@mxc.ca> |
It's not obvious, but lto_module_create_from_memory doesn't need to use the buffer after it creates the Module. Thus, we don't need to store this pointer in claimed_file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63834 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
c1da8864a9a47329af6255567097f01d352eb311 |
05-Feb-2009 |
Nick Lewycky <nicholas@mxc.ca> |
Remove accidentally included debug message! Reword a comment for clarity. Remove some extra whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63823 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
6cbbdfd2e900164beeb34513a25d88cc58e582b0 |
04-Feb-2009 |
Torok Edwin <edwintorok@gmail.com> |
Alphabetize includes. Update comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63771 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
1845d990411933f6bf6f92b28913cc7383a66835 |
04-Feb-2009 |
Torok Edwin <edwintorok@gmail.com> |
mention that PIC is needed for libLTO and libLLVMgold git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63755 91177308-0d34-0410-b5e6-96231b3b80d8
EADME.txt
|
4cb16349b0a45bfdc21d69bed416e4f3e00a1196 |
04-Feb-2009 |
Torok Edwin <edwintorok@gmail.com> |
remove printf - it was there only for debugging! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63742 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
3e5a0d8b0b848d1b0deb8976924703787b221e31 |
04-Feb-2009 |
Torok Edwin <edwintorok@gmail.com> |
add support for .a files containing LLVM IR to the gold plugin git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63741 91177308-0d34-0410-b5e6-96231b3b80d8
old-plugin.cpp
|
3e62b2dc93dae6904f0717612782ab6ebf413e1d |
03-Feb-2009 |
Nick Lewycky <nicholas@mxc.ca> |
Add LLVM plugin for gold. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63623 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
EADME.txt
old-plugin.cpp
|