Displaying 1 result from an estimated 1 matches for "bespokegcprinter".
2008 Aug 17
0
[LLVMdev] [!] Breaking changes to GC infrastructure
...ides to a subclass of
GCMetadataPrinter:
1. Subclass GCMetadataPrinter and move your beginAssembly and
endAssembly implementations there. The GCMetadataPrinter has the same
data 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 bes...