[all-commits] [llvm/llvm-project] 2fe964: [DirectX] Add ObjectFile boilerplate for objdump (...

Chris B via All-commits all-commits at lists.llvm.org
Mon Aug 4 08:57:46 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2fe96439fb81d85ea78a6311b1d9e6ed9b85bcfa
      https://github.com/llvm/llvm-project/commit/2fe96439fb81d85ea78a6311b1d9e6ed9b85bcfa
  Author: Chris B <chris.bieneman at me.com>
  Date:   2025-08-04 (Mon, 04 Aug 2025)

  Changed paths:
    M llvm/include/llvm-c/Object.h
    M llvm/include/llvm/Object/Binary.h
    M llvm/include/llvm/Object/DXContainer.h
    M llvm/include/llvm/Object/ObjectFile.h
    M llvm/lib/Object/Binary.cpp
    M llvm/lib/Object/DXContainer.cpp
    M llvm/lib/Object/Object.cpp
    M llvm/lib/Object/ObjectFile.cpp
    M llvm/lib/Object/SymbolicFile.cpp
    A llvm/test/tools/llvm-objdump/DXContainer/part-headers.yaml
    M llvm/tools/llvm-objdump/CMakeLists.txt
    A llvm/tools/llvm-objdump/DXContainerDump.cpp
    M llvm/tools/llvm-objdump/llvm-objdump.cpp
    M llvm/tools/llvm-objdump/llvm-objdump.h

  Log Message:
  -----------
  [DirectX] Add ObjectFile boilerplate for objdump (#151434)

This change adds boilerplate code to implement the object::ObjectFile
interface for the DXContainer object file and an empty implementation of
the objdump Dumper object.

Adding an ObjectFile implementation for DXContainer is a bit odd because
the DXContainer format doesn't have a symbol table, so there isn't a
reasonable implementation for the SymbolicFile interfaces. That said, it
does have sections, and it will be useful for objdump to be able to
inspect some of the structured data stored in some of the special named
sections.

At this point in the implementation it can't do much other than dump the
part names, offsets, and sizes. Dumping detailed structured section
contents to be extended in subsequent PRs.

Fixes #151433



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list