[llvm-commits] [llvm] r56942 - in /llvm/trunk: include/llvm/System/Host.h lib/System/Host.cpp lib/System/Unix/Host.inc lib/System/Win32/Host.inc
Chris Lattner
clattner at apple.com
Thu Oct 2 10:14:12 PDT 2008
On Oct 2, 2008, at 9:21 AM, Daniel Dunbar wrote:
> clang had a need to rewrite the OS portion of the target triple to
> that
> of the host in some situations, and I didn't want it to embed a uname
> call.
>
> Is your question related to the ambiguity of these queries?
>
> If you dislike this approach, perhaps a better one would be to add
> functionality to get the target-triple of the host machine?
Just from the interface design perspective, I think it would make
sense to make this a "give me the host's target triple" interface. It
would be a lot easier to explain what it is supposed to do.
-Chris
More information about the llvm-commits
mailing list