[llvm] 6bdf352 - [Binary] Remove OffloadBinary from the Objects enumeration
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 2 06:42:04 PDT 2022
Author: Joseph Huber
Date: 2022-06-02T09:34:23-04:00
New Revision: 6bdf352ed8fc5926e0f86fd6aa6b82300a4abc1c
URL: https://github.com/llvm/llvm-project/commit/6bdf352ed8fc5926e0f86fd6aa6b82300a4abc1c
DIFF: https://github.com/llvm/llvm-project/commit/6bdf352ed8fc5926e0f86fd6aa6b82300a4abc1c.diff
LOG: [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.
Added:
Modified:
llvm/include/llvm/Object/Binary.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Object/Binary.h b/llvm/include/llvm/Object/Binary.h
index 77ebf250bc0e7..53b299ae8612e 100644
--- a/llvm/include/llvm/Object/Binary.h
+++ b/llvm/include/llvm/Object/Binary.h
@@ -50,6 +50,8 @@ class Binary {
ID_WinRes, // Windows resource (.res) file.
+ ID_Offload, // Offloading binary file.
+
// Object and children.
ID_StartObjects,
ID_COFF,
@@ -69,8 +71,6 @@ class Binary {
ID_Wasm,
- ID_Offload, // Offloading binary file.
-
ID_EndObjects
};
More information about the llvm-commits
mailing list