[llvm-dev] cross-checking external declarations / debug info for declarations

David Callahan via llvm-dev llvm-dev at lists.llvm.org
Mon Dec 12 08:44:24 PST 2016


I was able to add a call to EmitFunctionDecl in
lib/CodeGen/CodeGenModule.cpp and then needed a corresponding LLVM change
to handle Subprogram¹s in the retained type vector.

The diff D18565 is marked Abandoned. What is the future plans for
supporting full-type consumers?

On 12/9/16, 2:24 PM, "aprantl at apple.com on behalf of Adrian Prantl"
<aprantl at apple.com> wrote:

>
>
>> On Dec 9, 2016, at 2:16 PM, David Callahan <dcallahan at fb.com> wrote:
>> 
>> Adrian, this appears to generate, in my example below, the return type
>>for
>> the external function (³foo² below) but does not generate a (in Dwarf)
>> DW_TAG_Subprogram which binds that type to the name. Is that expected?
>> 
>
>We are probably not visiting forward declarations in CGDebugInfo. You
>would probably need to visit them and call something like
>CGDebugInfo::getFunctionForwardDeclaration() on each declaration.
>
>-- adrian



More information about the llvm-dev mailing list