Go to file
Rafael Espindola 469350810a Refine our --wrap implementation.
Before this patch we would copy foo into real_foo and wrap_foo into
foo. The net result is that __wrap_foo shows up twice in the symbol
table.

With this patch we:

* save a copy of __real_foo before copying foo.
* drop one of the __wrap_foo from the symbol table.
* if __real_foo was not undefined, add a *new* symbol with that content to
  the symbol table.

The net result is that

Anything using foo now uses __wrap_foo
Anything using __real_foo now uses foo.
Anything using __wrap_foo still does.

And the symbol table has foo, __wrap_foo and __real_foo (if defined).

Which I think is the desired behavior.

llvm-svn: 315097
2017-10-06 20:09:34 +00:00
clang Revert r315087 2017-10-06 19:49:29 +00:00
clang-tools-extra [clangd] Run clang-format on the source code. NFC. 2017-10-06 14:39:39 +00:00
compiler-rt [asan] Use gold linker in android tests. 2017-10-06 00:00:53 +00:00
debuginfo-tests Revert r313600 due to bot failures on Green Dragon. 2017-09-19 14:51:37 +00:00
libclc configure: Fix handling of directories with compats only source lists 2017-10-05 20:16:28 +00:00
libcxx [libc++] Clarify names of ABI forcing macros 2017-10-05 02:18:08 +00:00
libcxxabi Fix ASAN build with older compiler-rt versions. 2017-09-14 22:37:34 +00:00
libunwind [docs] Mention that SjLj works on any OS on the archs where supported by the compiler 2017-10-06 19:14:07 +00:00
lld Refine our --wrap implementation. 2017-10-06 20:09:34 +00:00
lldb Implement interactive command interruption 2017-10-05 23:41:28 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm [GlobalISel] Fix legalizer trying to process a deleted instruction. 2017-10-06 19:24:15 +00:00
openmp KMP_HW_SUBSET vs KMP_PLACE_THREADS rival envirables fix 2017-10-06 19:23:19 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [ScopBuilder] Introduce -polly-stmt-granularity=scalar-indep option. 2017-10-05 13:43:00 +00:00