diff --git a/tools/driver/RequiredSymbols.cpp b/lib/UserInterface/RequiredSymbols.cpp similarity index 82% rename from tools/driver/RequiredSymbols.cpp rename to lib/UserInterface/RequiredSymbols.cpp index a905f8e3..9ccd0eb0 100644 --- a/tools/driver/RequiredSymbols.cpp +++ b/lib/UserInterface/RequiredSymbols.cpp @@ -31,4 +31,11 @@ void libcling__symbol_requester(const clang::FunctionDecl& Decl, DEI.getExpr(); cling::InterpreterCallbacks cb(0); } + +static struct ForceSymbolsAsUsed { + typedef void (*SRType)(const clang::FunctionDecl& Decl, + const cling::Interpreter& Interp); + ForceSymbolsAsUsed(): mPtr(libcling__symbol_requester) {} + SRType mPtr; +} sForceSymbolsAsUsed; }