[llvm-commits] [patch] Make it possible to enable and disable JIT debug dumps dynamically - namespace fix for new api

Xerxes Rånby xerxes at zafena.se
Mon Nov 9 02:13:55 PST 2009


Chris Lattner skrev:
>
> On Oct 28, 2009, at 8:50 AM, Xerxes Rånby wrote:
>
>> This patch would enable projects that use the LLVM JIT to enable and
>> disable JIT debug dumps dynamically.
>> The patch have been up for discussion on the llvm-dev mailinglist but
>> since it have gotten no attention there im posting it for review here
>> instead.
>>
>> http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-January/019661.html
>> http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-May/022101.html
>>
>> Projects like Icedtea (OpenJDK) that uses the LLVM JIT would benefit
>> from this patch since it would enable us to turn on dumping of JITed
>> machinecode for selected methods.
>>
>> Patch made by Andrew Haley.
>
> Hi Xerxes,
>
> I spoke with Andrew on IRC and added a new API to do this:
> http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20091026/089863.html
>
>
> Please verify that it works for you guys,
>
> -Chris
>
Hi Chris,

The new API worked as expected except one small issue, I had to make
SetCurrentDebugType part of the llvm namespace in Debug.cpp so that it
matches Debug.h or else i get a linking error stating that
llvm::SetCurrentDebugType could not get resolved.

Ok to push?

Cheers
Xerxes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: support_debug_namespace_llvm_SetCurrentDebugType.patch
Type: text/x-patch
Size: 511 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20091109/d787e5a2/attachment.bin>


More information about the llvm-commits mailing list