Displaying 7 results from an estimated 7 matches for "dibuil".
Did you mean:
libuil
2011 Mar 29
2
[LLVMdev] Accessing metadata & creating DIVariable
Hi,
> You need to call di.createCompileUnit() once for your translation unit in the beginning. You don't need to keep track of CU yourself. DIBuilder will take care of it. After words, you can call di.createBasicType(..) and it will work.
Actually it doesn't. But if I call di.createCompileUnit(file, dir,
producer, ...) with file or dir different from that of CU already in
the file, then it works. It isn't sufficient if the producer...
2011 Mar 29
2
[LLVMdev] Accessing metadata & creating DIVariable
I get the filename and directory from DISubprogram from reading
llvm.dbg.sp and use
that to DIBuiler::.createCompileUnit. This leads to "duplicate
symbol" error from llc.
>>> You need to call di.createCompileUnit() once for your translation unit in the beginning. You don't need to keep track of CU yourself. DIBuilder will take care of it. After words, you can call di.cr...
2011 Mar 29
0
[LLVMdev] Accessing metadata & creating DIVariable
On Mar 29, 2011, at 11:18 AM, Vedavyas Duggirala wrote:
> Hi,
>
>> You need to call di.createCompileUnit() once for your translation unit in the beginning. You don't need to keep track of CU yourself. DIBuilder will take care of it. After words, you can call di.createBasicType(..) and it will work.
>
> Actually it doesn't. But if I call di.createCompileUnit(file, dir,
> producer, ...) with file or dir different from that of CU already in
> the file, then it works. It isn't suffici...
2011 Mar 29
0
[LLVMdev] Accessing metadata & creating DIVariable
...rote:
>>>> I am adding local var to existing IR with debug info. I am not using
>>>> the Pass infrastructure.
>>>>
>>>> void InsertDbg(AllocaInst *i, StringRef varname, Instruction, inserbefore)
>>>> {
>>>>
>>>> DIBuilder di(*module);
>>>> cu = di.createCU / * How do I get the MDNode of already in the
>>>> IR . Instead of recreating it, using filename and directory I knew out
>>>> of band */
>>>
>>> DIBuilder.createCompileUnit() does not return anythi...
2011 Mar 29
0
[LLVMdev] Accessing metadata & creating DIVariable
>>> I get the filename and directory from DISubprogram from reading
>>> llvm.dbg.sp and use
>>> that to DIBuiler::.createCompileUnit. This leads to "duplicate
>>> symbol" error from llc.
>> If the llvm::Module already has llvm.dbg.sp then you don't need to use DIBuilder::createCompileUnit(). The point, I am missing is how did you get llvm.dbg.sp in module ?
>>
>>...
2011 Mar 29
0
[LLVMdev] Fwd: Accessing metadata & creating DIVariable
...>
> Subject: Re: [LLVMdev] Accessing metadata & creating DIVariable
>
>
> On Mar 29, 2011, at 4:29 PM, Vedavyas Duggirala wrote:
>
>>>> I get the filename and directory from DISubprogram from reading
>>>> llvm.dbg.sp and use
>>>> that to DIBuiler::.createCompileUnit. This leads to "duplicate
>>>> symbol" error from llc.
>>
>>> If the llvm::Module already has llvm.dbg.sp then you don't need to use DIBuilder::createCompileUnit(). The point, I am missing is how did you get llvm.dbg.sp in module ?
&...
2011 Mar 29
1
[LLVMdev] Accessing metadata & creating DIVariable
>>> I am adding local var to existing IR with debug info. I am not using
>>> the Pass infrastructure.
>>>
>>> void InsertDbg(AllocaInst *i, StringRef varname, Instruction, inserbefore)
>>> {
>>>
>>> DIBuilder di(*module);
>>> cu = di.createCU / * How do I get the MDNode of already in the
>>> IR . Instead of recreating it, using filename and directory I knew out
>>> of band */
>>
>> DIBuilder.createCompileUnit() does not return anything.
>>
>>...