[LLVMdev] [patch] New feature: debug info for function memory ranges (-jit-emit-debug-function-range)

Yuri yuri at rawbw.com
Mon Nov 1 11:25:56 PDT 2010


On 06/24/2010 00:09, Chris Lattner wrote:
>> On 06/23/2010 23:44, Chris Lattner wrote:
>>      
>>> This doesn't seem specific to the JIT.  Can you add this to the normal code generator, and have the JIT leverage off that?  Here are some minor comments, but the bigger issue of how this integrates seems important.
>>>
>>>        
>> Why this isn't specific to JIT? It outputs memory addresses of functions while they are run in JIT. Can code be run within LLVM in some other way than JIT?
>>      
> I don't know, good question.  If it really is specific to the JIT, please sink it down into JIT specific code.
>
>    
>>      
>>> This doesn't look like a valid forward declaration:
>>>
>>> +  raw_fd_ostream* JITEmitDebugInfoFunctionRangeStream(NULL);
>>>
>>>        
>> This isn't the forward declaration, but the definition of the static value.
>>      
> Ok, well that is extremely non-obvious.  Please use initialization syntax with "= NULL".
>
> -Chris
>    

I resubmitted the similar patch as a PR: 
http://llvm.org/bugs/show_bug.cgi?id=8518
Its all in JIT code now, except the new option definition itself.

Yuri



More information about the llvm-dev mailing list