diff options
| author | Fangrui Song <maskray@google.com> | 2018-11-01 20:02:49 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2018-11-01 20:02:49 +0000 |
| commit | ccfc8415c29a9e04929422b4577fdddb3292da9d (patch) | |
| tree | 33986689000e1f1597f5c7a6a27bd5d8caf72c39 /lld/wasm/LTO.cpp | |
| parent | 4af6025f09aadee25c024da32d07cd4a06076770 (diff) | |
| download | bcm5719-llvm-ccfc8415c29a9e04929422b4577fdddb3292da9d.tar.gz bcm5719-llvm-ccfc8415c29a9e04929422b4577fdddb3292da9d.zip | |
Set MAttrs in LTO mode
Summary: Without this patch, MAttrs are not set.
Patch by Yin Ma
Reviewers: espindola, MaskRay, ruiu, pcc
Reviewed By: MaskRay, pcc
Subscribers: pcc, emaste, sbc100, inglorion, arichardson, aheejin, steven_wu, llvm-commits
Differential Revision: https://reviews.llvm.org/D53446
llvm-svn: 345884
Diffstat (limited to 'lld/wasm/LTO.cpp')
| -rw-r--r-- | lld/wasm/LTO.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/wasm/LTO.cpp b/lld/wasm/LTO.cpp index 933607a0938..9bb21917e28 100644 --- a/lld/wasm/LTO.cpp +++ b/lld/wasm/LTO.cpp @@ -55,6 +55,7 @@ static std::unique_ptr<lto::LTO> createLTO() { C.DisableVerify = Config->DisableVerify; C.DiagHandler = diagnosticHandler; C.OptLevel = Config->LTOO; + C.MAttrs = GetMAttrs(); if (Config->SaveTemps) checkError(C.addSaveTemps(Config->OutputFile.str() + ".", |

