Commit Graph

2134 Commits

Author SHA1 Message Date
Frederich Munch
5a0e1bca84 Fix searching for library twice: DynamicLibraryManage::loadLibrary takes optional argument indicating if the path is from a previous lookupLibrary call.
(cherry picked from commit 244b26d6021e55e214ee078bec99e7c6a43d4820)
2016-07-19 18:14:10 +02:00
Axel Naumann
39dd90e183 Use LLVM_LINK_COMPONENTS; add_dependencies superseded by cling/CMakeLists.txt depending on tablegen-ed files. Cleanup linked libs. 2016-07-19 17:59:14 +02:00
Axel Naumann
b4e6edebb7 Remove unnecessary interface lib; no need for dependencies; add -ldl only if needed; use LLVM_LINK_COMPONENTS for llvm libs. 2016-07-19 17:59:14 +02:00
Frederich Munch
a054b253d8 Fix CMake projects to link to proper libraries when built as shared library. 2016-07-19 17:59:14 +02:00
CristinaCristescu
ae0c82121d Cling UITabCompletion. 2016-07-19 12:10:58 +02:00
Axel Naumann
2e08275916 Build libcling.so based on OBJECT "library" in CMake. 2016-07-19 10:59:32 +02:00
CristinaCristescu
1d13fe7548 Remove Extra included file in cling/UserInterface. 2016-07-18 20:44:10 +02:00
Axel Naumann
b3592df5c0 Fix (un)signed comparison warning. From Cristina! 2016-07-18 15:59:14 +02:00
Axel Naumann
955345222e Fix compilation failure. From Cristina. 2016-07-18 15:59:14 +02:00
CristinaCristescu
12ac538a5c Refactor 2016-07-18 14:29:14 +02:00
CristinaCristescu
4e320a621e LLVM resource dir for the child interpreter. 2016-07-18 14:29:14 +02:00
CristinaCristescu
528b16faf6 Refactoring ROOT & Cling code completion. 2016-07-18 14:29:14 +02:00
CristinaCristescu
e3d5b485e9 Filter the results loaded on the decls map for the known stem. 2016-07-18 14:29:14 +02:00
CristinaCristescu
8a646b6dba Pass the parent's interpreter llvmdir to the child interpreter. 2016-07-18 14:29:14 +02:00
CristinaCristescu
0d5cad62d2 Mark the external visibility of imported decls. 2016-07-18 14:29:14 +02:00
CristinaCristescu
16c5266de3 Make the Complete function a member of cling Interpreter. 2016-07-18 14:29:14 +02:00
CristinaCristescu
0381b517c1 Glue the cling tab completion to ROOT. 2016-07-18 14:29:13 +02:00
CristinaCristescu
cc5da51f21 Cling patch for code completion. 2016-07-18 14:29:13 +02:00
Axel Naumann
8ef4931a12 Initialize all pointer members! (Coverity 63235) 2016-07-18 11:29:36 +02:00
Axel Naumann
ce6206dd3b Do not access TheTarget if nullptr (Coverity 63252). 2016-07-18 11:29:36 +02:00
Axel Naumann
399dbc5248 Do not leak duped file handles (Coverity 54845). 2016-07-18 11:29:36 +02:00
Axel Naumann
1fe1876136 Exit early once the dylib is found. 2016-07-13 17:16:13 +02:00
Axel Naumann
7e9a74f3e4 Remove remnants of llvm configure/make build system. 2016-07-13 17:16:13 +02:00
Axel Naumann
b7267e1553 Clang now checks for missing cleanup actions. 2016-07-12 10:44:20 +02:00
Axel Naumann
ad1b09290d Follow change in clang interface. 2016-07-12 10:44:20 +02:00
Axel Naumann
6d97a5c2fa Improve detection of unnamed macro, from Nigel Victor Warr! 2016-07-06 15:29:05 +02:00
Philippe Canal
a5a0102dd0 Expected<T> object must be checked before use 2016-07-05 23:44:14 +02:00
Philippe Canal
95b31810f3 Fix the behavior of PointerCheckInjector for templated functions.
The previous version of the code was injecting the null pointer check in both
the function template and each function template instances resulting in the
check being called twice.

In addition, r272382 of llvm/clang seems to 'drop' part of the code that is
inserted in the function template when it instantiates it.  This resulting in
faulting behavior as the pointer is incorrectly cast (offset).

To solve this problem and avoid the double call, we now only insert the null
pointer check on regular function and function template instances.
2016-06-28 19:59:07 +02:00
Axel Naumann
bedc277fae Simplify invocation of DeclUnloader::UnloadDecl(). 2016-06-26 18:59:08 +02:00
Axel Naumann
d695460d0c Speling. 2016-06-26 18:59:07 +02:00
Axel Naumann
eb9e07a244 Move include to source where it belongs. 2016-06-26 18:59:07 +02:00
Axel Naumann
113ac38804 Move implementation details into source - even if they are templates.
They are private; any instantiation will happen in the source file.
They must be members: DeclUnloader is friend of Decl to access DefinitionData.
2016-06-26 18:59:07 +02:00
Axel Naumann
a7f2274811 Use overload resolution instead of templates. 2016-06-26 18:59:07 +02:00
Axel Naumann
e3dde66d81 Remove unused includes. 2016-06-26 18:59:07 +02:00
Axel Naumann
b1d7c3498d Very likely fix GCC access check issue. 2016-06-26 18:59:07 +02:00
Axel Naumann
94bc9f4f73 Separate DeclUnloader; TransactionUnloader recurses through Interpreter. 2016-06-26 10:29:17 +02:00
Axel Naumann
97c5bafb2f Merge transaction unlinking into deregisterTransaction; pass nullptr if Transaction gets unloaded. 2016-06-26 10:29:17 +02:00
Axel Naumann
1ec7136eeb Refactor, centralize all TransactionUnloading in Interpreter. 2016-06-26 10:29:17 +02:00
Axel Naumann
28bb1ed854 Make sure rollbackTransaction() can remove the transaction from the JIT. 2016-06-26 10:29:17 +02:00
Axel Naumann
4987d62346 Remove unloaded symbols from the symbol map. 2016-06-26 10:29:17 +02:00
Axel Naumann
6ba0924300 Trigger call to IncrementalJIT::removeModules()! 2016-06-26 10:29:17 +02:00
Axel Naumann
87a580e8c4 Try to work around clang "unused local typedef". 2016-06-22 13:59:07 +02:00
Axel Naumann
b2c8076707 Remove unused variable. Thanks, GCC! 2016-06-22 13:44:09 +02:00
Axel Naumann
3a8a7b2a5b Try to fix Fedora dependency / build issue. 2016-06-22 12:44:08 +02:00
Axel Naumann
dcd823444c Do not mangle dependent types. Fixes failures introduced by GCC5ABI mangling patch. 2016-06-22 12:44:08 +02:00
Axel Naumann
ab48904fa2 Revert "Clarify at compile-time that cling cannot handle the new GCC ABI yet."
Cling should now be able to do that.
2016-06-17 17:16:22 +02:00
Axel Naumann
cc29d8b4ec llvm-config.h gets installed and is sufficient. 2016-06-17 11:59:13 +02:00
Axel Naumann
f15a146faa Force OptLevel=0: all "unused" values might be used later, do not optimize them away. 2016-06-15 14:14:34 +02:00
Axel Naumann
0cd40526b5 Expose injected symbols also to "shared library" part of lambda resolver. 2016-06-15 14:14:34 +02:00
Axel Naumann
2729a76e04 Adapt to changed order of dlsym/JIT lambda in master. 2016-06-15 14:14:34 +02:00