[PATCH] MachO-embedded: refactor Clang to use "*-*-unknown-macho" triple

Tim Northover t.p.northover at gmail.com
Mon Dec 16 08:15:00 PST 2013


Hi,

This is a bit of a monster patch I'm afraid, though almost all of it turns out to be code movement rather than creation.

The goal was to be able to use "*-*-none-macho" for embedded MachO (ARM) targets rather than lying on two counts and calling them "*-*-darwin-eabi". So most of this patch is concerned with trying to create a reasonably sensible "MachO" ToolChain in lib/Driver and distribute all of the existing code between the MachO, Darwin and DarwinClang classes.

Does it look like a reasonable attempt?

Cheers.

Tim

http://llvm-reviews.chandlerc.com/D2416

Files:
  lib/Basic/Targets.cpp
  lib/Driver/Driver.cpp
  lib/Driver/ToolChain.cpp
  lib/Driver/ToolChains.cpp
  lib/Driver/ToolChains.h
  lib/Driver/Tools.cpp
  lib/Driver/Tools.h
  test/Driver/darwin-eabi.c
  test/Driver/darwin-embedded.c
  test/Driver/macho-embedded.c
  test/Preprocessor/macho-embedded-predefines.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2416.1.patch
Type: text/x-patch
Size: 100305 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131216/c7d4183b/attachment.bin>


More information about the cfe-commits mailing list