summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/LinkAllAsmWriterComponents.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/CodeGen/LinkAllAsmWriterComponents.h')
-rw-r--r--include/llvm/CodeGen/LinkAllAsmWriterComponents.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/LinkAllAsmWriterComponents.h b/include/llvm/CodeGen/LinkAllAsmWriterComponents.h
index 0dc94ea4a8..a1ba565d5d 100644
--- a/include/llvm/CodeGen/LinkAllAsmWriterComponents.h
+++ b/include/llvm/CodeGen/LinkAllAsmWriterComponents.h
@@ -20,14 +20,14 @@
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.