<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><div><div style="font-family: Calibri,sans-serif; font-size: 11pt;">Would adding a ModulesDidLoad equivalent to the base of LanguageRuntime be acceptable, for instance? <br><br>Then It's just a matter of looking up the respective language plugin and calling that, very similar to what's there already for ObjC.<br><br>Colin</div></div><div dir="ltr"><hr><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">From: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;"><a href="mailto:colin@codeplay.com">Colin Riley</a></span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Sent: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;">10/04/2015 17:06</span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">To: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;"><a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a></span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Subject: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;">[lldb-dev] Target changes for Language Runtimes</span><br><br></div>Hey folks,<br><br>So I added the initial part of the RenderScript language plugin which <br>went smoothly. In that review I stated it would be initialized along the <br>same lines of ObjCLanguageRuntime. Now, my initial thought was along the <br>lines of the attached patch - in Target::ModulesDidLoad, call a function <br>to see if any modules match a renderscript pattern, if so, enable the <br>languageruntime.<br><br>However, this then requires including the plugin headers within <br>target.cpp, which isn't ideal. ObjC has a base class header actually in <br>the target project space, so uses that. Are there any views on how to <br>make this a bit more generic, to allow for other Language Runtimes to <br>detect applicability on module-load?<br><br>Cheers,<br>Colin<br></body></html>