Skip to content

Commit dad74e2

Browse files
ericsalocopybara-github
authored andcommitted
upb: remove reflection:internal as a dep in upb_generator/
PiperOrigin-RevId: 601286979
1 parent 7f1ef7e commit dad74e2

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

upb_generator/BUILD

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,12 @@ cc_library(
239239
"//upb:descriptor_upb_proto",
240240
"//upb:json",
241241
"//upb:mem",
242+
"//upb:message",
242243
"//upb:mini_descriptor",
243244
"//upb:mini_table",
244245
"//upb:port",
245246
"//upb:reflection",
246247
"//upb:wire",
247-
"//upb/reflection:internal",
248248
],
249249
)
250250

upb_generator/get_used_fields.c

+13-3
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,22 @@
77

88
#include "upb_generator/get_used_fields.h"
99

10+
#include <stddef.h>
11+
#include <stdio.h>
12+
#include <stdlib.h>
13+
#include <string.h>
14+
1015
#include "google/protobuf/descriptor.upb.h"
1116
#include "google/protobuf/compiler/plugin.upb.h"
12-
#include "upb/reflection/def_pool.h"
13-
#include "upb/reflection/field_def.h"
17+
#include "upb/base/descriptor_constants.h"
18+
#include "upb/base/string_view.h"
19+
#include "upb/mem/arena.h"
20+
#include "upb/message/array.h"
21+
#include "upb/message/map.h"
22+
#include "upb/message/message.h"
23+
#include "upb/mini_table/message.h"
24+
#include "upb/reflection/def.h"
1425
#include "upb/reflection/message.h"
15-
#include "upb/reflection/message_def.h"
1626
#include "upb/wire/decode.h"
1727

1828
// Must be last.

0 commit comments

Comments
 (0)