[clang] [llvm] [Hexagon] ELF attributes for Hexagon (PR #85359)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 14 22:14:11 PDT 2024


================
@@ -251,7 +251,10 @@ StringRef llvm::object::getELFSectionTypeName(uint32_t Machine, unsigned Type) {
     }
     break;
   case ELF::EM_HEXAGON:
-    switch (Type) { STRINGIFY_ENUM_CASE(ELF, SHT_HEX_ORDERED); }
+    switch (Type) {
+      STRINGIFY_ENUM_CASE(ELF, SHT_HEX_ORDERED);
----------------
MaskRay wrote:

Add a test to llvm/test/tools/llvm-readobj/ELF/machine-specific-section-types.test

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


More information about the cfe-commits mailing list