<div dir="rtl"><div dir="ltr">Hmm. </div><div dir="ltr">* The code segment indeed seems to do nothing.</div><div dir="ltr">* Even then, std::string Arch not required at all.<br></div><div dir="ltr">* iN86 logic lives in Triple::ArchType parseArch which is called by Triple::normalize anyhow.</div><div dir="ltr">* The darwin logic means clang ignores whatever version LLVM_DEFAULT_TARGET_TRIPLE provides, replacing it with what uname says for this host. that on purpose? is this also done for other triples such as passed from command line?</div><div dir="ltr"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2015-02-12 5:14 GMT+02:00 Kamil Rytarowski <span dir="ltr"><<a href="mailto:n54@gmx.com" target="_blank">n54@gmx.com</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I was looking at sys::getDefaultTargetTriple() (file:<br>
lib/Support/Unix/Host.inc ) and there is something<br>
unclear to me.<br>
<br>
std::string sys::getDefaultTargetTriple() {<br>
  StringRef TargetTripleString(LLVM_DEFAULT_TARGET_TRIPLE);<br>
  std::pair<StringRef, StringRef> ArchSplit = TargetTripleString.split('-');<br>
<br>
  // Normalize the arch, since the target triple may not actually match the<br>
  // target.<br>
  std::string Arch = ArchSplit.first;<br>
<br>
  std::string Triple(Arch);<br>
  Triple += '-';<br>
  Triple += ArchSplit.second;<br>
[...]<br>
<br>
Does content of Tripe = TargetTripleString? Of course<br>
with the difference of the container type.<br>
<br>
Do I miss something?<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>