On 25 July 2014 04:32, Stephen Drake <[email protected]> wrote:
> Hi Rafael,
>
> Thanks for having a look at this.  I've updated my patch to add some tests to 
> Driver/darwin-arch-default.c, which I hope is an appropriate place for them.
>
> After posting the initial patch, I had a go at resolving the FIXME code 
> instead of just copy-pasting it.  I'm also attaching the resulting 
> alternative patch that uses getDefaultUniversalArchName() instead of 
> getArchName() as the starting point for MachO::getMachOArchName().  Having 
> checked the history, I don't think that I'm subverting the intent of either 
> function, but since I'm both an LLVM and C++ noob, it could use some fairly 
> strenuous scrutiny.  In particular, I changed the return type of 
> getDefaultUniversalArchName() from std::string to StringRef, and I'm not sure 
> if that's allowed.

The change to use StringRef is a nice independent improvement. I have
committed it as r213964 .

The code itself looks fine. Ian, can you confirm that this is the
right thing to do for darwin powerpc?

Cheers,
Rafael

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to