<div dir="ltr">Hey Greg,<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 26, 2014 at 2:52 PM, Greg Clayton <span dir="ltr"><<a href="mailto:gclayton@apple.com" target="_blank">gclayton@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">A few things with respect to triple comparison:<br>
<br>
The strings really shouldn't be compared, but the arch/vendor/os enums should be. You might also have a "unspecified 'unknown'" or a "specified 'unknown'".<br>
<br>
For example if you type:<br>
<br>
(lldb) file --arch x86_64 ...<br>
<br>
The triple will be:<br>
<br>
arch = x86_64<br>
vendor = "unspecified 'unknown'"<br>
os = "unspecified 'unknown'"<br>
<br>
But if you type:<br>
<br>
<br>
(lldb) file --arch x86_64-unknown-unknown ...<br>
<br>
The triple will be:<br>
<br>
arch = x86_64<br>
vendor = "specified 'unknown'"<br>
os = "specified 'unknown'"<br></blockquote><div> </div><div>Is there a way to mark just the vendor portion as "unspecified 'unknown'" without having to use the string form?  I have a code path where I want to literally clear it meaning "I really don't know what it is, but I know it's not what it is currently set to..."  (I hit that when the arch was defaulting to x86_64-apple-{something} but I was refining the vendor idea of a Linux x86_64 elf file based on note content).  </div>
<div> </div></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div></div>