[PATCH] D96641: [XCOFF] [NFC] make StorageMappingClass/SymbolType member optional in MCSectionXCOFF class

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 12 22:24:38 PST 2021


shchenz created this revision.
shchenz added reviewers: hubert.reinterpretcast, jsji, daltenty, ZarkoCA, jasonliu, PowerPC.
Herald added a subscriber: hiraditya.
shchenz requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This is a follow-up of D95931 <https://reviews.llvm.org/D95931>. In that patch, we made the **constructor function** of  `MCSectionXCOFF` has optional parameters for `StorageMappingClass` and `SymbolType`.

This patch makes the private class members `MappingClass` and `Type` and their associated `get` functions optional. Non-csect sections like debug sections have no such properties.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96641

Files:
  llvm/include/llvm/MC/MCSectionXCOFF.h
  llvm/lib/MC/MCSectionXCOFF.cpp
  llvm/lib/MC/XCOFFObjectWriter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96641.323521.patch
Type: text/x-patch
Size: 5817 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210213/7015a27c/attachment.bin>


More information about the llvm-commits mailing list