1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

Revert 258157

According the build bots, clang is using the Registry class somewhere as well. Will reapply with appropriate clang changes at a later point.

llvm-svn: 258159
This commit is contained in:
Philip Reames 2016-01-19 18:41:10 +00:00
parent a2ab3d6165
commit e0ccb686f9
3 changed files with 8 additions and 17 deletions

View File

@ -116,15 +116,14 @@ namespace llvm {
};
};
// Use this macro to stamp out definitions for required static symbols in an
// appropriate source file. This is required to avoid getting multiple
// definitions of the Registry's fields in different translation or linkage
// units.
#define DEFINE_REGISTRY(T) \
template <> \
typename Registry<T>::node *Registry<T>::Head = nullptr; \
template <> \
typename Registry<T>::node *Registry<T>::Tail = nullptr;
// Since these are defined in a header file, plugins must be sure to export
// these symbols.
template <typename T>
typename Registry<T>::node *Registry<T>::Head;
template <typename T>
typename Registry<T>::node *Registry<T>::Tail;
} // end namespace llvm
#endif // LLVM_SUPPORT_REGISTRY_H

View File

@ -17,7 +17,3 @@ using namespace llvm;
GCMetadataPrinter::GCMetadataPrinter() {}
GCMetadataPrinter::~GCMetadataPrinter() {}
// Stamp out the registry of GCMetadataPrinter objects so that pulgins can load
// new Strategies.
DEFINE_REGISTRY(GCMetadataPrinter)

View File

@ -20,7 +20,3 @@ GCStrategy::GCStrategy()
: UseStatepoints(false), NeededSafePoints(0), CustomReadBarriers(false),
CustomWriteBarriers(false), CustomRoots(false), InitRoots(true),
UsesMetadata(false) {}
// Stamp out the registry of GCStrategy objects so that pulgins can load new
// Strategies.
DEFINE_REGISTRY(GCStrategy)