[llvm] [yaml2obj][obj2yaml][objdump] Handle MIPS COFF files (PR #112591)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 18 00:50:09 PDT 2024


================
@@ -183,6 +183,25 @@ void ScalarEnumerationTraits<COFF::RelocationTypeAMD64>::enumeration(
   ECase(IMAGE_REL_AMD64_SSPAN32);
 }
 
+void ScalarEnumerationTraits<COFF::RelocationTypesMips>::enumeration(
+    IO &IO, COFF::RelocationTypesMips &Value) {
+  ECase(IMAGE_REL_MIPS_ABSOLUTE);
----------------
jh7370 wrote:

You probably don't need to test every case here, but I think your new test should include a couple of relocations, so that this code is exercised somehow by the test.

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


More information about the llvm-commits mailing list