diff options
author | Sam Clegg <sbc@chromium.org> | 2020-07-24 21:36:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 21:36:16 -0700 |
commit | 109f9fef53c16afaf1ced4149c9b2536adca0c2c (patch) | |
tree | 829f0c1f520c03ce303977dbddb955e2859a91f0 /src/passes/pass.cpp | |
parent | dad719e97b8461f31d29faebe2f15ad4843c0417 (diff) | |
download | binaryen-109f9fef53c16afaf1ced4149c9b2536adca0c2c.tar.gz binaryen-109f9fef53c16afaf1ced4149c9b2536adca0c2c.tar.bz2 binaryen-109f9fef53c16afaf1ced4149c9b2536adca0c2c.zip |
Move emscripten PIC ABI conversion to a pass. NFC. (#2985)
Doing it this way happens to re-order the __assign_got_entries
function in the module, but its otherwise NFC.
Diffstat (limited to 'src/passes/pass.cpp')
-rw-r--r-- | src/passes/pass.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/passes/pass.cpp b/src/passes/pass.cpp index 78717568e..9ff06b153 100644 --- a/src/passes/pass.cpp +++ b/src/passes/pass.cpp @@ -123,6 +123,12 @@ void PassRegistry::registerPasses() { registerPass("emit-target-features", "emit the target features section in the output", createEmitTargetFeaturesPass); + registerPass("emscripten-pic", + "Convert PIC ABI from llvm to emscripten", + createEmscriptenPICPass); + registerPass("emscripten-pic-main-module", + "Convert PIC ABI from llvm to emscripten", + createEmscriptenPICMainModulePass); registerPass("extract-function", "leaves just one function (useful for debugging)", createExtractFunctionPass); |