Whitespace.

This commit is contained in:
Axel Naumann 2017-08-30 21:36:03 +02:00 committed by sftnight
parent 62bcd0aa3b
commit 15a4056c56
3 changed files with 19 additions and 19 deletions

View File

@ -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

View File

@ -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

View File

@ -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