On Oct 8, 2012, at 3:33 PM, Anton Korobeynikov <[email protected]> wrote:
> Bob, > >> const Driver &D = getToolChain().getDriver(); >> - llvm::Triple Triple = getToolChain().getTriple(); >> + // Get the effective triple, which takes into account the deployment >> target. >> + std::string TripleStr = getToolChain().ComputeEffectiveClangTriple(Args); >> + llvm::Triple Triple(TripleStr); > A lot of code down contains calls like > getToolChain().getTriple().isFoo(). Should they be moved to use this > Triple ? (Sorry for the slow response.) That "effective triple" will generally be the same except for the OS version number on Darwin, and most of the Darwin version checks are using the information set by the Darwin toolchain's AddDeploymentTarget method rather than checking the triple directly. This code could certainly use some reorganization to be more consistent, but I don't think there's any reason to use the ComputeEffectiveClangTriple more widely. _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
