[llvm-commits] [patch] Make it possible to enable and disable JIT debug dumps dynamically

Chris Lattner clattner at apple.com
Wed Oct 28 08:54:22 PDT 2009


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

>
> Ok to push?
>
> Cheers
> Xerxes
> Index: lib/Support/Debug.cpp
> ===================================================================
> --- lib/Support/Debug.cpp	(Revision 71077)
> +++ lib/Support/Debug.cpp	(Arbeitskopie)
> @@ -48,7 +48,7 @@
>   static cl::opt<DebugOnlyOpt, true, cl::parser<std::string> >
>   DebugOnly("debug-only", cl::desc("Enable a specific type of debug  
> output"),
>             cl::Hidden, cl::value_desc("debug string"),
> -            cl::location(DebugOnlyOptLoc), cl::ValueRequired);
> +            cl::location(DebugOnlyOptLoc), cl::ValueRequired,  
> cl::ZeroOrMore);
> #endif
> }
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the llvm-commits mailing list