[llvm] Fix typo in section name for STYP_EXCEPT (PR #161959)

via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 4 07:43:30 PDT 2025


https://github.com/smallzhong created https://github.com/llvm/llvm-project/pull/161959

Corrected the string from 'expect' to 'except' for the STYP_EXCEPT section in XCOFFObjectFile.cpp.

>From 733584a549d17571a4ccd65f227773a001406131 Mon Sep 17 00:00:00 2001
From: smallzhong <zhongyuchu2001 at gmail.com>
Date: Sat, 4 Oct 2025 20:29:32 +0800
Subject: [PATCH] Fix typo in section name for STYP_EXCEPT

Corrected the string from 'expect' to 'except' for the STYP_EXCEPT section in XCOFFObjectFile.cpp.
---
 llvm/lib/Object/XCOFFObjectFile.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/Object/XCOFFObjectFile.cpp b/llvm/lib/Object/XCOFFObjectFile.cpp
index c5a2ec219e91c..68809627b56c9 100644
--- a/llvm/lib/Object/XCOFFObjectFile.cpp
+++ b/llvm/lib/Object/XCOFFObjectFile.cpp
@@ -473,7 +473,7 @@ Expected<uintptr_t> XCOFFObjectFile::getSectionFileOffsetToRawData(
       ECASE(STYP_TEXT, "text");
       ECASE(STYP_DATA, "data");
       ECASE(STYP_BSS, "bss");
-      ECASE(STYP_EXCEPT, "expect");
+      ECASE(STYP_EXCEPT, "except");
       ECASE(STYP_INFO, "info");
       ECASE(STYP_TDATA, "tdata");
       ECASE(STYP_TBSS, "tbss");



More information about the llvm-commits mailing list