123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #pragma once
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wunused-parameter"
- #endif
- #ifndef LLVM_CODEGEN_LINKALLASMWRITERCOMPONENTS_H
- #define LLVM_CODEGEN_LINKALLASMWRITERCOMPONENTS_H
- #include "llvm/IR/BuiltinGCs.h"
- #include <cstdlib>
- namespace {
- struct ForceAsmWriterLinking {
- ForceAsmWriterLinking() {
-
-
-
-
-
-
-
- if (std::getenv("bar") != (char*) -1)
- return;
- llvm::linkOcamlGCPrinter();
- llvm::linkErlangGCPrinter();
- }
- } ForceAsmWriterLinking;
- }
- #endif
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif
|