[llvm-commits] [PATCH 5/5] Hookup the ELF support for X86.
Benjamin Kramer
benny.kra at googlemail.com
Mon Jul 26 13:37:21 PDT 2010
On 26.07.2010, at 22:32, Eli Friedman wrote:
> On Mon, Jul 26, 2010 at 1:00 PM, Matt Fleming <matt at console-pimps.org> wrote:
>> --- a/lib/Target/X86/X86TargetMachine.cpp
>> +++ b/lib/Target/X86/X86TargetMachine.cpp
>> @@ -46,6 +46,8 @@ static MCStreamer *createMCStreamer(const Target &T, const std::string &TT,
>> bool RelaxAll) {
>> Triple TheTriple(TT);
>> switch (TheTriple.getOS()) {
>> + case Triple::Linux:
>> + return createELFStreamer(Ctx, TAB, _OS, _Emitter, RelaxAll);
>
> + case Triple::AuroraUX:
> + case Triple::DragonFly:
> + case Triple::NetBSD:
> + case Triple::OpenBSD:
> + case Triple::FreeBSD:
> + case Triple::Solaris:
> + case Triple::Haiku:
Can't we just make ELF the default? There are way more ELF targets than MachO targets and we default to ELF in other places.
More information about the llvm-commits
mailing list