Rafael Espindola
daa117be4c
Make the test a bit more strict.
...
Before it would pass even if @b or @c ended up pointing to a variable named
@a123.
llvm-svn: 215450
2014-08-12 15:55:27 +00:00
Rafael Espindola
cb9cd7f913
Add a plugin testcase for merging weak variables.
...
I initially thought I could implement COMDATs with aliases by just
internalizing GVs instead of dropping them. This is a counter
example: Internalizing one of the @a would make @b and @c point
to different variables.
llvm-svn: 215447
2014-08-12 15:39:14 +00:00
Rafael Espindola
55b3254ea2
Fix using -plugin-opt=apiflie when also using -plugin-opt=emit-llvm.
...
llvm-svn: 215378
2014-08-11 19:06:54 +00:00
Rafael Espindola
cc847b6376
Fix test failure on ARM.
...
llvm-svn: 215140
2014-08-07 20:33:06 +00:00
Rafael Espindola
c03b6e7880
Add a test showing the interaction of linker scripts and plugin.
...
In particular, the linker script is processed early enough for function g
to be internalized.
llvm-svn: 214916
2014-08-05 19:56:53 +00:00
Rafael Espindola
21ab24edfb
Add a small test showing when a linkonce_odr symbol can be hidden.
...
llvm-svn: 214311
2014-07-30 15:31:21 +00:00
Rafael Espindola
6c472e5e14
gold plugin: Fix handling of corrupted bitcode files.
...
We should still claim them and tell gold about the error.
llvm-svn: 214214
2014-07-29 20:46:19 +00:00
Rafael Espindola
340aae797d
Add a test for the mtriple plugin option.
...
llvm-svn: 214186
2014-07-29 17:27:07 +00:00
Rafael Espindola
99298fc36a
Test the linker plugin handling of llvm.used.
...
llvm-svn: 214116
2014-07-28 20:42:29 +00:00
Rafael Espindola
6dca51502a
Add tests for the various emit-llvm plugin options.
...
llvm-svn: 214102
2014-07-28 17:37:25 +00:00
Rafael Espindola
2172f51e4e
Test the mcpu option.
...
llvm-svn: 214087
2014-07-28 14:44:33 +00:00
Rafael Espindola
852bad0a95
Start adding some tests for the gold plugin.
...
These are only used when the 'ld' in the path is gold and the plugin has
been built, but it is already a start to make sure we don't regress features
that cannot be tested with llvm-lto.
llvm-svn: 214058
2014-07-27 23:11:06 +00:00