From dad74e2db73fb6da4fdc3062ec3b2758f74a6a3f Mon Sep 17 00:00:00 2001 From: Eric Salo Date: Wed, 24 Jan 2024 17:43:19 -0800 Subject: [PATCH] upb: remove reflection:internal as a dep in upb_generator/ PiperOrigin-RevId: 601286979 --- upb_generator/BUILD | 2 +- upb_generator/get_used_fields.c | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/upb_generator/BUILD b/upb_generator/BUILD index 67dae452dc..c63b22ba93 100644 --- a/upb_generator/BUILD +++ b/upb_generator/BUILD @@ -239,12 +239,12 @@ cc_library( "//upb:descriptor_upb_proto", "//upb:json", "//upb:mem", + "//upb:message", "//upb:mini_descriptor", "//upb:mini_table", "//upb:port", "//upb:reflection", "//upb:wire", - "//upb/reflection:internal", ], ) diff --git a/upb_generator/get_used_fields.c b/upb_generator/get_used_fields.c index 1478df7d23..5743f05534 100644 --- a/upb_generator/get_used_fields.c +++ b/upb_generator/get_used_fields.c @@ -7,12 +7,22 @@ #include "upb_generator/get_used_fields.h" +#include +#include +#include +#include + #include "google/protobuf/descriptor.upb.h" #include "google/protobuf/compiler/plugin.upb.h" -#include "upb/reflection/def_pool.h" -#include "upb/reflection/field_def.h" +#include "upb/base/descriptor_constants.h" +#include "upb/base/string_view.h" +#include "upb/mem/arena.h" +#include "upb/message/array.h" +#include "upb/message/map.h" +#include "upb/message/message.h" +#include "upb/mini_table/message.h" +#include "upb/reflection/def.h" #include "upb/reflection/message.h" -#include "upb/reflection/message_def.h" #include "upb/wire/decode.h" // Must be last.