4 Commits

Author SHA1 Message Date
Alexis Engelke
98640226ba
[CMake][NFC] Don't use uninitialized LLVM_REQUIRES_* (#175554)
LLVM_REQUIRES_* are per-target flags that are never set globally. Yet,
some files used these (undefined) flags for some logic. This patch
emoves these dead checks/unconditionally executes the logic. Note that
the referenced *.exports files are empty, so there is no need to make
related logic conditional on MSVC.
2026-01-12 16:13:20 +00:00
Jie Fu
74197925dc [clang][examples] Fix build failure (NFC)
/llvm-project/clang/examples/LLVMPrintFunctionNames/LLVMPrintFunctionNames.cpp:36:20:
error: cannot use incomplete type 'llvm::Module' as a range
    for (auto &F : M)
                   ^
2024-06-29 21:42:26 +08:00
Jie Fu
407afbf1bc [clang][examples] Remove unused variable 'key' in LLVMPrintFunctionNames.cpp (NFC)
/llvm-project/clang/examples/LLVMPrintFunctionNames/LLVMPrintFunctionNames.cpp:33:28: error: unused variable 'key' [-Werror,-Wunused-variable]
  static llvm::AnalysisKey key;
                           ^
1 error generated.
2023-11-07 13:09:20 +08:00
William Moses
3c11ac5118
[Clang] Add codegen option to add passbuilder callback functions (#70171) 2023-11-06 22:26:38 -06:00