[PATCH] D107569: [ORC] Emit i386 indirections for 32-bit processes on x86_64 hosts
Stefan Gränitz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 6 02:29:40 PDT 2021
sgraenitz added a comment.
In D107569#2930141 <https://reviews.llvm.org/D107569#2930141>, @lhames wrote:
> Why are we getting Triple::x86_64 rather than Triple::x86? I think we really want to add a Triple::x86 case and then figure out how to make sure the right triple is fed in.
`sys::getProcessTriple()` returns `LLVM_HOST_TRIPLE` which contains Triple::x86_64 on 64-bit hosts (even in 32-bit processes). We could patch the getProcessTriple() function, but I am afraid it's going to be a bigger chunk of work. Please find some more detail form my investigation in the ticket: https://bugs.llvm.org/show_bug.cgi?id=51292#c3
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107569/new/
https://reviews.llvm.org/D107569
More information about the llvm-commits
mailing list