[llvm] [XCOFF][obj2yaml] Support SymbolAlignmentAndType as 2 separate fields in YAML. (PR #76828)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 18 00:49:02 PST 2024


================
@@ -127,6 +127,16 @@ void ScalarEnumerationTraits<XCOFF::StorageMappingClass>::enumeration(
 #undef ECase
 }
 
+void ScalarEnumerationTraits<XCOFF::SymbolType>::enumeration(
----------------
jh7370 wrote:

The point of yaml2obj is to be able to generate these invalid objects. In many other cases , you can specify both `Field: SOME_ENUM` and `Field: 42`. I think you  usually have to add a line like this: https://github.com/llvm/llvm-project/blob/4f62a183d9101a90d62e2a278d0513e9d2afba43/llvm/lib/ObjectYAML/ELFYAML.cpp#L55

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


More information about the llvm-commits mailing list