Displaying 1 result from an estimated 1 matches for "gcmetadataprinterregistry".
2008 Aug 17
0
[LLVMdev] [!] Breaking changes to GC infrastructure
...ta accessors as Collector (now GCStrategy), so your implementation
shouldn't need many changes.
class BespokeGCPrinter : public GCMetadataPrinter {
public:
void beginAssembly(...) { ... }
void endAssembly(...) { ... }
};
2. Register your printer with GCMetadataPrinterRegistry.
GCMetadataPrinterRegistry::Add<BespokeGCPrinter>
X("bespoke", "my bespoke");
3. Set the new UsesMetadata flag in your Collector subclass'
constructor so that the AsmWriter will look for your assembly printer:
MyGC::MyGC() {
......