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

Chris Lattner clattner at apple.com
Thu Jun 24 00:09:22 PDT 2010


On Jun 24, 2010, at 12:02 AM, Yuri 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



More information about the llvm-dev mailing list