<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br><div><div>On Dec 17, 2007, at 8:17 AM, Gordon Henriksen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div>On 2007-12-17, at 00:31, Christopher Lamb wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The API for getting PointerType objects has just changed to make Embedded C address space information explicit. The old semantics of PointerType::get() now apply to PointerType::getUnqual(), which returns a pointer in the generic address space. PointerType::get() now requires both a type and an address space.<div><br class="webkit-block-placeholder"></div><div>The clang, llvm-gcc-4.0, and llvm-gcc-4.2, and internal llvm projects have all been updated to take this API change into account.<br><br></div><div>The only current omission is the C interface to the LLVM type system, which has not yet been updated to preserve or expose address spaces on PointerType's. I'm hoping for a little help with that.</div></div></blockquote><br></div><div>Hi Cristopher,</div><div><br class="webkit-block-placeholder"></div><div>I ran aground of this mildly:</div><div><br class="webkit-block-placeholder"></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><font class="Apple-style-span" face="Courier"><div>$ Release/bin/llvm-as <<END_OF_LL | Release/bin/llvm-dis</div><div>        %Gnric = type i8*</div><div>        %Qual3 = type i8 addrspace(3)*</div><div>        %Qual5 = type i8 addrspace(5)*</div><div>END_OF_LL</div><div>; ModuleID = '<stdin>'</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>%Gnric = type i8*</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>%Qual3 = type i8*</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>%Qual5 = type i8*</div></font></div></div></blockquote><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Trebuchet MS; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><br class="webkit-block-placeholder"></div><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">It looks to be purely a problem in <font class="Apple-style-span" face="Courier">llvm-dis</font> output since the three types would fold internally to the llvm-dis process if the qualifiers did not survive through the input phase.</div><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><br class="webkit-block-placeholder"></div><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Please revert r45097 when you get this working.</div></span></div> </blockquote><br></div><div>Fixed <a href="http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20071217/056441.html">http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20071217/056441.html</a></div><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Christopher Lamb</div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span> </div><br></body></html>