diff --git a/mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp b/mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp --- a/mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp +++ b/mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp @@ -25,6 +25,9 @@ using namespace mlir::LLVM; using mlir::LLVM::detail::getLLVMConstant; +static LLVM_ATTRIBUTE_UNUSED ::llvm::GlobalValue::LinkageTypes +convertLinkageToLLVM(::mlir::LLVM::Linkage value); + #include "mlir/Dialect/LLVMIR/LLVMConversionEnumsToLLVM.inc" /// Convert MLIR integer comparison predicate to LLVM IR comparison predicate. diff --git a/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp b/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp --- a/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp +++ b/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp @@ -44,6 +44,9 @@ using namespace mlir::LLVM; using namespace mlir::LLVM::detail; +static LLVM_ATTRIBUTE_UNUSED ::llvm::InlineAsm::AsmDialect +convertAsmDialectToLLVM(::mlir::LLVM::AsmDialect value); + #include "mlir/Dialect/LLVMIR/LLVMConversionEnumsToLLVM.inc" /// Builds a constant of a sequential LLVM type `type`, potentially containing