[PATCH] D43184: [WIP] [ItaniunCXXABI] Add an option for loading the type info vtable with dllimport
Reid Kleckner via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 15 13:18:56 PDT 2018
rnk added a comment.
In https://reviews.llvm.org/D43184#1039354, @mstorsjo wrote:
> Ok - I'll put it on the backburner, and maybe see if I'd try implementing the linker part of fixing unannotated data imports at some point.
I'm not sure that's feasible. At least for x86, global addresses can be folded in ways that mean the linker cannot relax them. You can go the other way, though. If we start by assuming all data is imported, you can often relax an __imp_sym load to a LEA sym(%rip). This increases register pressure and generates worse code, but it has conceivable use cases.
Repository:
rC Clang
https://reviews.llvm.org/D43184
More information about the cfe-commits
mailing list