[compiler-rt] [compiler-rt][XRay] Make `xray_interface.h` C compliant (PR #140068)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri May 23 19:49:32 PDT 2025


================
@@ -86,12 +93,12 @@ extern int __xray_remove_typedevent_handler();
 
 extern uint16_t __xray_register_event_type(const char *event_type);
 
-enum XRayPatchingStatus {
+typedef enum {
----------------
MaskRay wrote:

I am not sure about this change. I'd prefer that we keep `enum XRayPatchingStatus` and require C users to specify `enum XRayPatchingStatus` for this type.

https://github.com/llvm/llvm-project/pull/140068


More information about the llvm-commits mailing list