[PATCH] D116544: [Clang] Introduce Clang Linker Wrapper Tool

Joseph Huber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 3 10:00:56 PST 2022


jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, gregrodgers, JonChesterfield, ronlieb.
Herald added a subscriber: mgorny.
jhuber6 requested review of this revision.
Herald added subscribers: cfe-commits, sstefan1.
Herald added a project: clang.

This patch introduces a linker wrapper tool that allows us to preprocess
files before they are sent to the linker. This adds a dummy action and
job to the driver stage that builds the linker command as usual and then
replaces the command line with the wrapper tool.

Depends on D116543 <https://reviews.llvm.org/D116543>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116544

Files:
  clang/include/clang/Driver/Action.h
  clang/include/clang/Driver/Job.h
  clang/include/clang/Driver/ToolChain.h
  clang/lib/Driver/Action.cpp
  clang/lib/Driver/Driver.cpp
  clang/lib/Driver/ToolChain.cpp
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/lib/Driver/ToolChains/Clang.h
  clang/tools/CMakeLists.txt
  clang/tools/clang-linker-wrapper/CMakeLists.txt
  clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116544.397093.patch
Type: text/x-patch
Size: 11701 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220103/7adf3abf/attachment.bin>


More information about the cfe-commits mailing list