mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[VE] Disable relative lookup table converter pass for VE
VE's linker, /opt/nec/ve/bin/nld, doesn't implement relative lookup table. The relative lookup table is introduced by https://reviews.llvm.org/D94355, but we need to disable it at the moment. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D106224
This commit is contained in:
parent
070bb38c2e
commit
92e22e34b8
@ -76,6 +76,16 @@ public:
|
||||
// TODO report vregs once vector isel is stable.
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool shouldBuildRelLookupTables() const {
|
||||
// NEC nld doesn't support relative lookup tables. It shows following
|
||||
// errors. So, we disable it at the moment.
|
||||
// /opt/nec/ve/bin/nld: src/CMakeFiles/cxxabi_shared.dir/cxa_demangle.cpp
|
||||
// .o(.rodata+0x17b4): reloc against `.L.str.376': error 2
|
||||
// /opt/nec/ve/bin/nld: final link failed: Nonrepresentable section on
|
||||
// output
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace llvm
|
||||
|
Loading…
Reference in New Issue
Block a user