<div>OK so the problem is that the compiler sees '0' and can't decide whether its an integer or a null pointer of type Constant *. I guess the new functions will have to have slightly different names.</div><div>
<br><div class="gmail_quote">On Wed, Oct 7, 2009 at 9:50 AM, Devang Patel <span dir="ltr"><<a href="mailto:devang.patel@gmail.com">devang.patel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Thu, Oct 1, 2009 at 8:34 PM, Talin <<a href="mailto:viridia@gmail.com">viridia@gmail.com</a>> wrote:<br>
> Here is a patch that does just that.<br>
<br>
This does not work. I'm getting<br>
<br>
llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp: In member function<br>
‘llvm::DIType clang::CodeGen::CGDebugInfo::CreateQualifiedType(clang::QualType,<br>
llvm::DICompileUnit)’:<br>
/Users/yash/clean/llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp:225:<br>
error: call of overloaded ‘CreateDerivedType(unsigned int&,<br>
llvm::DICompileUnit&, const char [1], llvm::DICompileUnit, int, int,<br>
int, int, int, llvm::DIType&)’ is ambiguous<br>
llvm/include/llvm/Analysis/DebugInfo.h:530: note: candidates are:<br>
llvm::DIDerivedType llvm::DIFactory::CreateDerivedType(unsigned int,<br>
llvm::DIDescriptor, llvm::StringRef, llvm::DICompileUnit, unsigned<br>
int, uint64_t, uint64_t, uint64_t, unsigned int, llvm::DIType)<br>
llvm/include/llvm/Analysis/DebugInfo.h:540: note:<br>
llvm::DIDerivedType llvm::DIFactory::CreateDerivedType(unsigned int,<br>
llvm::DIDescriptor, const std::string&, llvm::DICompileUnit, unsigned<br>
int, llvm::Constant*, llvm::Constant*, llvm::Constant*, unsigned int,<br>
llvm::DIType)<br>
<br>
-<br>
<font color="#888888">Devang<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>-- Talin<br>
</div>