From 6bdf352ed8fc5926e0f86fd6aa6b82300a4abc1c Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Thu, 2 Jun 2022 09:32:32 -0400 Subject: [PATCH] [Binary] Remove OffloadBinary from the Objects enumeration Summary: We use the beginning and end of this enumeration to determine what is and isn't an object format. The enumeration for the OffloadBinary was put here by mistake which led to it being mistakenly classified as an Object file. --- llvm/include/llvm/Object/Binary.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Object/Binary.h b/llvm/include/llvm/Object/Binary.h index 77ebf250bc0e..53b299ae8612 100644 --- a/llvm/include/llvm/Object/Binary.h +++ b/llvm/include/llvm/Object/Binary.h @@ -50,6 +50,8 @@ protected: ID_WinRes, // Windows resource (.res) file. + ID_Offload, // Offloading binary file. + // Object and children. ID_StartObjects, ID_COFF, @@ -69,8 +71,6 @@ protected: ID_Wasm, - ID_Offload, // Offloading binary file. - ID_EndObjects };