mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-03 06:45:48 +01:00
20 lines
622 B
C++
20 lines
622 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
|
|
|
|
#ifndef CARBON_TOOLCHAIN_SEM_IR_ENTRY_POINT_H_
|
|
#define CARBON_TOOLCHAIN_SEM_IR_ENTRY_POINT_H_
|
|
|
|
#include "toolchain/sem_ir/file.h"
|
|
|
|
namespace Carbon::SemIR {
|
|
|
|
// Returns whether the specified function is the entry point function for the
|
|
// program, `Main.Run`.
|
|
auto IsEntryPoint(const SemIR::File& file, SemIR::FunctionId function_id)
|
|
-> bool;
|
|
|
|
} // namespace Carbon::SemIR
|
|
|
|
#endif // CARBON_TOOLCHAIN_SEM_IR_ENTRY_POINT_H_
|