24 Commits

Author SHA1 Message Date
Vassil Vassilev
dad7ed462e removeRedeclFromChain is a template static. Fixes osx warning. 2021-02-25 20:44:19 +01:00
Javier Lopez-Gomez
13485246a7 Fixes issue in DeclUnloader: do not unload templates intantiated in the PCH 2019-10-01 01:15:50 +02:00
Vassil Vassilev
a1bd767b6b Adapt to interface changes due to upgrade to r302975. 2017-06-08 10:29:13 +02:00
Axel Naumann
c85f9a2c57 Do not mark decls used, just to prevent unloading!
This has the side effect that many symbols will need to be emitted.
It's much cheaper to not DeclUnload these decls instead.
2017-03-31 10:29:22 +02:00
Axel Naumann
40bc805952 Revert "Fix unloading of friend declarations."
This reverts commit 1cf955ae4504d8cdb6d87c70d4331806c9861255.
2017-02-10 08:44:05 +01:00
Axel Naumann
86de616002 Revert "Fix unloading of types in a namespace declared as using. This fixes triggering an assert in clang caused by trying to remove a declaration too many times."
This reverts commit c1574e399ae2e46fd0400d49c45eb48875995775.
2017-02-10 08:44:05 +01:00
Frederich Munch
1cc55d32ea Fix unloading of types in a namespace declared as using. This fixes triggering an assert in clang caused by trying to remove a declaration too many times. 2017-02-09 17:14:19 +01:00
Frederich Munch
f87922659d Fix unloading of friend declarations. 2017-02-09 17:14:19 +01:00
Frederich Munch
afb2746b64 Fix unloading global variables declared extern "C". Add test that demonstrated failure. 2017-02-02 08:30:01 +01:00
Frederich Munch
7ee942f14e Windows: Avoid mangling Dtor_Comdat 2016-12-15 14:29:09 +01:00
Frederich Munch
8644c890f4 Windows: Fix crash on unloading of Dtor_Comdat destructors. 2016-12-15 14:29:09 +01:00
Frederich Munch
e1854092b5 Move DeclUnloader and ParserStateRAII into cling namespace. 2016-09-22 15:15:27 +02:00
Frederich Munch
e4ffea8cd4 Use LLVM_NOEXCEPT and LLVM_CONSTEXPR macros. 2016-09-09 09:29:49 +02:00
Axel Naumann
5e8ee50a09 Clarify that CLING_CONSTEXPR is only for functions (vars need const for old MSVC). 2016-08-26 15:14:10 +02:00
Axel Naumann
23735aca6b "const static bool isDefinition(void*)" is weird. Thanks, Roman Zulak! 2016-08-26 11:44:29 +02:00
Axel Naumann
ec7c96a324 Do not #define keywords. 2016-08-25 15:14:12 +02:00
Bertrand Bellenot
fd5177dfe6 Only check if constexpr and noexcept are defined with Visual Studio < 2015 2016-08-22 12:29:29 +02:00
Roman Zulak
e40bd4f1a0 Syntax fixes for VisualStudio < 2015.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-20 13:14:40 +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
94bc9f4f73 Separate DeclUnloader; TransactionUnloader recurses through Interpreter. 2016-06-26 10:29:17 +02:00