//===- llvm/Codegen/LinkAllCodegenComponents.h ------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This header file pulls in all codegen related passes for tools like lli and // llc that need this functionality. // //===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_LINKALLCODEGENCOMPONENTS_H #define LLVM_CODEGEN_LINKALLCODEGENCOMPONENTS_H #include "llvm/CodeGen/Passes.h" #include "llvm/CodeGen/SchedulerRegistry.h" #include "llvm/Target/TargetMachine.h" #include <cstdlib> namespace { struct ForceCodegenLinking { … } ForceCodegenLinking; // Force link by creating a global definition. } #endif