diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-25 03:23:25 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-25 03:23:25 +0000 |
commit | 17600e29fa8d154f7c1e36d797f21422eebcf249 (patch) | |
tree | ac90d094e00bb84d873bc47142414980803c6f58 /clang/docs/tools/dump_ast_matchers.py | |
parent | c7d3fc5547159b8d8cd40dcd50d2de879991180c (diff) | |
download | bcm5719-llvm-17600e29fa8d154f7c1e36d797f21422eebcf249.tar.gz bcm5719-llvm-17600e29fa8d154f7c1e36d797f21422eebcf249.zip |
Respect llvm.used in Internalize.
The language reference says that:
"If a symbol appears in the @llvm.used list, then the compiler,
assembler, and linker are required to treat the symbol as if there is
a reference to the symbol that it cannot see"
Since even the linker cannot see the reference, we must assume that
the reference can be using the symbol table. For example, a user can add
__attribute__((used)) to a debug helper function like dump and use it from
a debugger.
llvm-svn: 187103
Diffstat (limited to 'clang/docs/tools/dump_ast_matchers.py')
0 files changed, 0 insertions, 0 deletions