Rafael Espindola
dc9fe0af85
Fix object file writing in llvm-lto on Windows.
...
We were writing in text mode.
Patch by Greg Bedwell.
llvm-svn: 191985
2013-10-04 21:40:54 +00:00
Rafael Espindola
cda2911caa
Optimize linkonce_odr unnamed_addr functions during LTO.
...
Generalize the API so we can distinguish symbols that are needed just for a DSO
symbol table from those that are used from some native .o.
The symbols that are only wanted for the dso symbol table can be dropped if
llvm can prove every other dso has a copy (linkonce_odr) and the address is not
important (unnamed_addr).
llvm-svn: 191922
2013-10-03 18:29:09 +00:00
Rafael Espindola
dafc53dde1
Add a -exported-symbol option to llvm-lto.
...
Patch by Tom Roeder.
llvm-svn: 191825
2013-10-02 14:12:56 +00:00
Rafael Espindola
44fee4e0eb
Remove several unused variables.
...
Patch by Alp Toker.
llvm-svn: 191757
2013-10-01 13:32:03 +00:00
Rafael Espindola
0b385c77f7
Move command line options to the users of libLTO. Fixes --enable-shared build.
...
Patch by Richard Sandiford.
llvm-svn: 191680
2013-09-30 16:39:19 +00:00
Peter Collingbourne
4ccf0f1bef
Move LTO support library to a component, allowing it to be tested
...
more reliably across platforms. Patch by Tom Roeder!
llvm-svn: 191343
2013-09-24 23:52:22 +00:00
Peter Collingbourne
4e380b0a04
Fix LTO handling of module-level assembly (PR14152).
...
Patch by Tom Roeder!
llvm-svn: 191042
2013-09-19 22:15:52 +00:00