[llvm-commits] FW: [PATCH] enabling generation of ELF objects on Windows with the help of the triple

Anton Korobeynikov anton at korobeynikov.info
Wed Feb 1 03:33:02 PST 2012


Hi Eli

> Let me see if I grok your proposal. You want the "container override" to be implemented in a way that is generic and not only active for ELF. Is that right? In this case, I think we're already almost there. If you look at the usage of Triple.getEnvironment(), you'll notice that the "MachO override" was already implemented.
Well... parts at least in lib/Target/X86/X86Subtarget.h and
lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp look really weird,
because they make ELF as a special case. Look for MachO usage nearby.

In particular, I think that all stuff like getEnvironment() != ELF
should be removed / refactored.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University




More information about the llvm-commits mailing list