diff options
author | Petr Hosek <phosek@chromium.org> | 2019-07-20 21:59:47 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2019-07-20 21:59:47 +0000 |
commit | ae4c30a4bed9813203280d876a552cc7ab5ffbeb (patch) | |
tree | 224c72d042de41e234df1826b67beb3fafff105d /lld/include | |
parent | a2dd672c5ffb25c48571cd10badd8bbc6472c8a2 (diff) | |
download | bcm5719-llvm-ae4c30a4bed9813203280d876a552cc7ab5ffbeb.tar.gz bcm5719-llvm-ae4c30a4bed9813203280d876a552cc7ab5ffbeb.zip |
[ELF] Support explicitly overriding relocation model in LTO
lld currently selects the relocation model automatically depending on
the link flags specified, but in some cases it'd be useful to allow
explicitly overriding the relocation model using a flag.
llvm-svn: 366644
Diffstat (limited to 'lld/include')
-rw-r--r-- | lld/include/lld/Common/TargetOptionsCommandFlags.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/include/lld/Common/TargetOptionsCommandFlags.h b/lld/include/lld/Common/TargetOptionsCommandFlags.h index 9345e616f9a..422bb630f9f 100644 --- a/lld/include/lld/Common/TargetOptionsCommandFlags.h +++ b/lld/include/lld/Common/TargetOptionsCommandFlags.h @@ -16,6 +16,7 @@ namespace lld { llvm::TargetOptions initTargetOptionsFromCodeGenFlags(); +llvm::Optional<llvm::Reloc::Model> getRelocModelFromCMModel(); llvm::Optional<llvm::CodeModel::Model> getCodeModelFromCMModel(); std::string getCPUStr(); std::vector<std::string> getMAttrs(); |