[LLVMdev] LLVM,metadata for namespaces

Devang Patel dpatel at apple.com
Mon Sep 19 10:00:04 PDT 2011


On Sep 19, 2011, at 7:31 AM, Irina Lipov wrote:

> yes.I have in each namespace at least one function.And I call these functions later.
> What I tried to do is to take module scope iterate all namespaces defined in it and call createNameSpace for each of them.
> When debugging I see that the namespaces are generated ,but in IR file there is no debug information for namespaces

Do you see debug information for functions in IR ? Do you see any debug information in IR ?
-
Devang

> 
> Also I tried to generate debug information for namespaces ,while treating lexical blocks...
> 
> I think ,that in  both cases generated DINameSpace, should be integrated with existing descriptor/s?
>  
> Thank you in advance for the answer
>  
> 
> 
> 
>  
> On Mon, Sep 19, 2011 at 5:08 PM, David Blaikie <dblaikie at gmail.com> wrote:
> just off the cuff, have you actually created and used any names in the namespace. I don't know for sure, but it wouldn't surprise me if the namespace doesn't exist independently of any uses.
> From: Irina Lipov
> Sent: 9/19/2011 3:16 AM
> To: llvmdev at cs.uiuc.edu
> Subject: [LLVMdev] LLVM,metadata for namespaces
> 
> Hello,
> I am wring front end for compiler ,the project I am working on,is based on llvm.
> I have a problem with generating metadata for namespaces.
> I call createNameSpace (with correct arguments) and get DINameSpace .
> But in IR file  no metadata for namespace is generated.
> Can you advice me please what is the problem?Have I integrate in some way the DINameSpace I got with module or context?
> 
> -- 
> Thank you,
> Irena
> 
> 
> 
> -- 
> Best,
> Irena
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110919/7af36665/attachment.html>


More information about the llvm-dev mailing list