As x86-64 psABI supports both LP64 and ILP32, this patch adds <ELFT>
template to X86_64TargetInfo.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM with a nit.
ELF/Target.cpp | ||
---|---|---|
239–246 ↗ | (On Diff #63746) | This seems a bit too defensive. I'd simply do if (Config->EKind == ELF32LEKind) return new X86_64TargetInfo<ELF32LE>(); return new X86_64TargetInfo<ELF64LE>(); |