diff options
author | Kazushi (Jam) Marukawa <marukawa@nec.com> | 2020-03-10 17:39:11 +0100 |
---|---|---|
committer | Simon Moll <simon.moll@emea.nec.com> | 2020-03-10 17:51:16 +0100 |
commit | 3dabad1af38ca93266e9322e2d00bd2ee3a0c26d (patch) | |
tree | f6b72376281a20f5f63a44c0048dfb8916bca4b0 /llvm/lib/CodeGen/TargetPassConfig.cpp | |
parent | 71ffac21f7463465c369ba12dc496f9f5338e6b4 (diff) | |
download | llvm-3dabad1af38ca93266e9322e2d00bd2ee3a0c26d.zip llvm-3dabad1af38ca93266e9322e2d00bd2ee3a0c26d.tar.gz llvm-3dabad1af38ca93266e9322e2d00bd2ee3a0c26d.tar.bz2 |
[VE] Target-specific bit size for sjljehprepare
Summary:
This patch extends the TargetMachine to let targets specify the integer size
used by the sjljehprepare pass. This is 64bit for the VE target and otherwise
defaults to 32bit for all targets, which was hard-wired before.
Reviewed By: arsenm
Differential Revision: https://reviews.llvm.org/D71337
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetPassConfig.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp index d08d05d..4485d5e 100644 --- a/llvm/lib/CodeGen/TargetPassConfig.cpp +++ b/llvm/lib/CodeGen/TargetPassConfig.cpp @@ -695,7 +695,7 @@ void TargetPassConfig::addPassesToHandleExceptions() { // removed from the parent invoke(s). This could happen when a landing // pad is shared by multiple invokes and is also a target of a normal // edge from elsewhere. - addPass(createSjLjEHPreparePass()); + addPass(createSjLjEHPreparePass(TM)); LLVM_FALLTHROUGH; case ExceptionHandling::DwarfCFI: case ExceptionHandling::ARM: |