lower.cpp 539 B

12345678910111213141516
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #include "toolchain/lower/lower.h"
  5. namespace Carbon {
  6. auto Lower::Make(llvm::LLVMContext& llvm_context, llvm::StringRef module_name,
  7. const SemanticsIR& /*semantics_ir*/)
  8. -> std::unique_ptr<llvm::Module> {
  9. auto result = std::make_unique<llvm::Module>(module_name, llvm_context);
  10. return result;
  11. }
  12. } // namespace Carbon