mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Also Lower::Make to LowerToLLVM, removing the class for now. This is per request from chandlerc and zygoloid.
17 lines
550 B
C++
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
|