From b4a8dcde49d8bccd0524a73426b74e7064cad89a Mon Sep 17 00:00:00 2001 From: Axel Naumann Date: Thu, 1 Nov 2012 16:51:59 +0000 Subject: [PATCH] Everyone wants these symbols; for now put the symbol request through static init into UserInterface git-svn-id: http://root.cern.ch/svn/root/trunk@46982 27541ba8-7e3a-0410-8455-c3a389f83636 --- {tools/driver => lib/UserInterface}/RequiredSymbols.cpp | 7 +++++++ 1 file changed, 7 insertions(+) rename {tools/driver => lib/UserInterface}/RequiredSymbols.cpp (82%) 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; }