frobtech wrote:

> Actually, thinking about it, maybe we should just do the nop insertion for 
> UEFI targets. The UEFI environment is very similar to Windows. CC @Prabhuk .

I think that's an appropriately conservative place to start, anyway.  The 
uefi-* targets are still nascent and heretofore the Windows targets have been 
used for producing UEFI binaries.  So the approach we've taken is that for all 
miscellaneous code generation issues, we should start with the UEFI target 
matching the behavior of the corresponding Windows target exactly.  That seems 
like the right thing to do for now.  In the future as the uefi-* targets 
mature, we can reconsider things that are really only relevant to Windows ABIs 
and not to the UEFI ABI or the PE-COFF format.  The Windows EH ABI is not an 
aspect of the UEFI ABI, but the support for Windows EH does not interfere with 
UEFI so I think it's harmless enough to emit all the same stuff.  

https://github.com/llvm/llvm-project/pull/144745
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to