diff options
author | Teresa Johnson <tejohnson@google.com> | 2019-12-12 11:59:36 -0800 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2019-12-12 12:34:19 -0800 |
commit | c8e0bb3b2c24ef59556d81a275fb1f5db64899d3 (patch) | |
tree | 9f700b857676d676ff03dea2a7d4f68c9f5940a6 /lldb/packages/Python/lldbsuite/test/lang/cpp/std-function-step-into-callable/TestStdFunctionStepIntoCallable.py | |
parent | 0ee89c1bad8cef81725ef892d60b4aa254d84744 (diff) | |
download | bcm5719-llvm-c8e0bb3b2c24ef59556d81a275fb1f5db64899d3.tar.gz bcm5719-llvm-c8e0bb3b2c24ef59556d81a275fb1f5db64899d3.zip |
[LTO] Support for embedding bitcode section during LTO
Summary:
This adds support for embedding bitcode in a binary during LTO. The libLTO gains supports the `-lto-embed-bitcode` flag. The option allows users of the LTO library to embed a bitcode section. For example, LLD can pass the option via `ld.lld -mllvm=-lto-embed-bitcode`.
This feature allows doing something comparable to `clang -c -fembed-bitcode`, but on the (LTO) linker level. Having bitcode alongside native code has many use-cases. To give an example, the MacOS linker can create a `-bitcode_bundle` section containing bitcode. Also, having this feature built into LLVM is an alternative to 3rd party tools such as [[ https://github.com/travitch/whole-program-llvm | wllvm ]] or [[ https://github.com/SRI-CSL/gllvm | gllvm ]]. As with these tools, this feature simplifies creating "whole-program" llvm bitcode files, but in contrast to wllvm/gllvm it does not rely on a specific llvm frontend/driver.
Patch by Josef Eisl <josef.eisl@oracle.com>
Reviewers: #llvm, #clang, rsmith, pcc, alexshap, tejohnson
Reviewed By: tejohnson
Subscribers: tejohnson, mehdi_amini, inglorion, hiraditya, aheejin, steven_wu, dexonsmith, dang, cfe-commits, llvm-commits, #llvm, #clang
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D68213
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/std-function-step-into-callable/TestStdFunctionStepIntoCallable.py')
0 files changed, 0 insertions, 0 deletions