diff --git a/toolchain/check/BUILD b/toolchain/check/BUILD index 213513bdbef18..884183ac7f0d2 100644 --- a/toolchain/check/BUILD +++ b/toolchain/check/BUILD @@ -95,8 +95,6 @@ cc_library( cc_library( name = "dump", srcs = ["dump.cpp"], - # Contains Dump methods without a forward declaration. - copts = ["-Wno-missing-prototypes"], deps = [ ":context", "//common:check", diff --git a/toolchain/check/dump.cpp b/toolchain/check/dump.cpp index d92306c78d518..4823890d77701 100644 --- a/toolchain/check/dump.cpp +++ b/toolchain/check/dump.cpp @@ -57,17 +57,17 @@ static auto DumpNoNewline(const Context& context, SemIR::LocId loc_id) -> void { } } -LLVM_DUMP_METHOD auto Dump(const Context& context, Lex::TokenIndex token) +LLVM_DUMP_METHOD static auto Dump(const Context& context, Lex::TokenIndex token) -> void { Parse::Dump(context.parse_tree(), token); } -LLVM_DUMP_METHOD auto Dump(const Context& context, Parse::NodeId node_id) +LLVM_DUMP_METHOD static auto Dump(const Context& context, Parse::NodeId node_id) -> void { Parse::Dump(context.parse_tree(), node_id); } -LLVM_DUMP_METHOD auto Dump(const Context& context, SemIR::LocId loc_id) +LLVM_DUMP_METHOD static auto Dump(const Context& context, SemIR::LocId loc_id) -> void { DumpNoNewline(context, loc_id); llvm::errs() << '\n';