[llvm] [GOFF] Refactor writing GOFF records (PR #93855)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 26 19:31:29 PDT 2024
================
@@ -12,34 +12,92 @@
#include "llvm/ObjectYAML/GOFFYAML.h"
#include "llvm/BinaryFormat/GOFF.h"
-#include <string.h>
namespace llvm {
-namespace GOFFYAML {
-Object::Object() {}
+namespace yaml {
-} // namespace GOFFYAML
+void ScalarEnumerationTraits<GOFFYAML::GOFF_AMODE>::enumeration(
+ IO &IO, GOFFYAML::GOFF_AMODE &Value) {
+#define ECase(X) IO.enumCase(Value, #X, GOFF::ESD_##X)
+ ECase(AMODE_None);
+ ECase(AMODE_24);
+ ECase(AMODE_31);
+ ECase(AMODE_ANY);
----------------
EsmeYi wrote:
OK, I see. Thanks.
https://github.com/llvm/llvm-project/pull/93855
More information about the llvm-commits
mailing list