26 if (S.getName() ==
Name)
27 return S.instantiate();
44 const std::string
error =
45 std::string(
"unsupported GC: ") +
Name.str() +
46 " (did you remember to link and initialize the library?)";
#define LLVM_INSTANTIATE_REGISTRY(REGISTRY_CLASS)
Instantiate a registry class.
A global registry used in conjunction with static constructors to make pluggable components (like tar...
static iterator_range< iterator > entries()
StringRef - Represent a constant reference to a string, i.e.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
This is an optimization pass for GlobalISel generic memory operations.
void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.
void linkAllBuiltinGCs()
FIXME: Collector instances are not useful on their own.
std::unique_ptr< GCStrategy > getGCStrategy(const StringRef Name)
Lookup the GCStrategy object associated with the given gc name.