mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 15:58:10 +00:00
Restructure __intrinsic_print to be a keyword-like Print (#1407)
This commit is contained in:
1 parent
4296e1e780
commit
084bc6ebc1
12 files changed
+93
-20
No files matched your search
@@ -22,6 +22,10 @@ using llvm::isa;
|
||||
auto IntrinsicExpression::FindIntrinsic(std::string_view name,
|
||||
SourceLocation source_loc)
|
||||
-> ErrorOr<Intrinsic> {
|
||||
// TODO: Remove Print special casing once we have variadics or overloads.
|
||||
if (name == "Print") {
|
||||
return Intrinsic::Print;
|
||||
}
|
||||
static const auto& intrinsic_map = *new std::map<std::string_view, Intrinsic>(
|
||||
{{"print", Intrinsic::Print},
|
||||
{"new", Intrinsic::Alloc},
|
||||
|
||||
Reference in new issue
Block a user