Whitespace.
This commit is contained in:
parent
62bcd0aa3b
commit
15a4056c56
@ -14,24 +14,23 @@
|
||||
#include "cling/Interpreter/InterpreterCallbacks.h"
|
||||
|
||||
namespace cling {
|
||||
///\brief Unlocks and then upon destruction locks the interpreter again.
|
||||
struct EnterUserCodeRTTI {
|
||||
InterpreterCallbacks* fCallbacks; // callbacks used to un/lock.
|
||||
void* fStateInfo = nullptr; // info provided to ReturnedFromUserCode().
|
||||
EnterUserCodeRTTI(InterpreterCallbacks* callbacks): fCallbacks(callbacks)
|
||||
{
|
||||
if (fCallbacks)
|
||||
fStateInfo = fCallbacks->EnteringUserCode();
|
||||
}
|
||||
///\brief Unlocks and then upon destruction locks the interpreter again.
|
||||
struct EnterUserCodeRTTI {
|
||||
InterpreterCallbacks* fCallbacks; // callbacks used to un/lock.
|
||||
void* fStateInfo = nullptr; // info provided to ReturnedFromUserCode().
|
||||
EnterUserCodeRTTI(InterpreterCallbacks* callbacks): fCallbacks(callbacks) {
|
||||
if (fCallbacks)
|
||||
fStateInfo = fCallbacks->EnteringUserCode();
|
||||
}
|
||||
|
||||
EnterUserCodeRTTI(Interpreter& interp): EnterUserCodeRTTI(interp.getCallbacks())
|
||||
{}
|
||||
EnterUserCodeRTTI(Interpreter& interp):
|
||||
EnterUserCodeRTTI(interp.getCallbacks()) {}
|
||||
|
||||
~EnterUserCodeRTTI() {
|
||||
if (fCallbacks)
|
||||
fCallbacks->ReturnedFromUserCode(fStateInfo);
|
||||
}
|
||||
};
|
||||
~EnterUserCodeRTTI() {
|
||||
if (fCallbacks)
|
||||
fCallbacks->ReturnedFromUserCode(fStateInfo);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif // CLING_BACKENDPASSES_H
|
||||
|
@ -83,8 +83,7 @@ CreateHostTargetMachine(const clang::CompilerInstance& CI) {
|
||||
|
||||
IncrementalExecutor::IncrementalExecutor(clang::DiagnosticsEngine& diags,
|
||||
const clang::CompilerInstance& CI):
|
||||
m_Callbacks(nullptr),
|
||||
m_externalIncrementalExecutor(nullptr)
|
||||
m_Callbacks(nullptr), m_externalIncrementalExecutor(nullptr)
|
||||
#if 0
|
||||
: m_Diags(diags)
|
||||
#endif
|
||||
|
@ -156,7 +156,9 @@ namespace cling {
|
||||
void setExternalIncrementalExecutor(IncrementalExecutor *extIncrExec) {
|
||||
m_externalIncrementalExecutor = extIncrExec;
|
||||
}
|
||||
void setCallbacks(InterpreterCallbacks* callbacks) { m_Callbacks = callbacks; }
|
||||
void setCallbacks(InterpreterCallbacks* callbacks) {
|
||||
m_Callbacks = callbacks;
|
||||
}
|
||||
void installLazyFunctionCreator(LazyFunctionCreatorFunc_t fp);
|
||||
|
||||
///\brief Send all collected modules to the JIT, making their symbols
|
||||
|
Loading…
Reference in New Issue
Block a user