Files
carbon-lang/toolchain/lowering/lower_to_llvm.cpp
T
Jon Ross-Perkins 86aecb532f Rename lower to lowering (#2618)
Also Lower::Make to LowerToLLVM, removing the class for now.

This is per request from chandlerc and zygoloid.
2023-02-22 12:19:35 -08:00

17 lines
550 B
C++

// 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 "toolchain/lowering/lower_to_llvm.h"
namespace Carbon {
auto LowerToLLVM(llvm::LLVMContext& llvm_context, llvm::StringRef module_name,
const SemanticsIR& /*semantics_ir*/)
-> std::unique_ptr<llvm::Module> {
auto result = std::make_unique<llvm::Module>(module_name, llvm_context);
return result;
}
} // namespace Carbon