/
githubmirror
/
carbon-lang
Обзор
Документация
Войти
/
githubmirror
/
carbon-lang
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
common/all_llvm_targets.cpp
23 строки
755 B
Jon Ross-Perkins
Run clang-tidy on headers (#3572)
06 янв 2024, 02:01
Не верифицирован
06 янв 2024, 02:01
a196b98
Код
Авторство
О чём код?
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include "common/init_llvm.h" #include "llvm/Support/TargetSelect.h" namespace Carbon { static auto InitLLVMTargets() -> void { llvm::InitializeAllTargetInfos(); llvm::InitializeAllTargets(); llvm::InitializeAllTargetMCs(); llvm::InitializeAllAsmParsers(); llvm::InitializeAllAsmPrinters(); } // On program startup, set `InitLLVM::InitializeTargets` to be our // initialization function so that `InitLLVM` can call it at the right moment. const char InitLLVM::RegisterTargets = (InitializeTargets = &InitLLVMTargets, 0); } // namespace Carbon