Rename some GC classes so that their roll will hopefully be clearer.
[oota-llvm.git] / include / llvm / CodeGen / LinkAllAsmWriterComponents.h
index 0dc94ea4a805fbe758c258ac98a3b05c7244627b..a1ba565d5d3f18723b7691b535427524371798bb 100644 (file)
 namespace {
   struct ForceAsmWriterLinking {
     ForceAsmWriterLinking() {
-      // We must reference the passes in such a way that compilers will not
+      // We must reference the plug-ins in such a way that compilers will not
       // delete it all as dead code, even with whole program optimization,
       // yet is effectively a NO-OP. As the compiler isn't smart enough
       // to know that getenv() never returns -1, this will do the job.
       if (std::getenv("bar") != (char*) -1)
         return;
 
-      (void) llvm::createOcamlMetadataPrinter();
+      llvm::linkOcamlGCPrinter();
 
     }
   } ForceAsmWriterLinking; // Force link by creating a global definition.