[all-commits] [llvm/llvm-project] c941db: [macho] Allow CPUSubtype to be adjusted before wri...
Daniel Sanders via All-commits
all-commits at lists.llvm.org
Mon Nov 18 13:17:54 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: c941db5b1acdc45fc1c50762684f1014e981abc6
https://github.com/llvm/llvm-project/commit/c941db5b1acdc45fc1c50762684f1014e981abc6
Author: Daniel Sanders <daniel_l_sanders at apple.com>
Date: 2019-11-18 (Mon, 18 Nov 2019)
Changed paths:
M llvm/include/llvm/MC/MCMachObjectWriter.h
Log Message:
-----------
[macho] Allow CPUSubtype to be adjusted before writing it to a file
Summary:
It's not always possible for a target to provide a MachO CPUSubtype up
front as is required by the current implementation. Sometimes you need more
information like the particular CPU implementation you are targeting.
Give MCMachObjectTargetWriter subclasses the opportunity to modify the
CPUSubtype after the MCMachObjectTargetWriter is created but before the
object starts being written. Typically this would be done in response to
instructions from a TargetStreamer.
Reviewers: pete
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D70344
Commit: 17919017878e9abda5bb33a38199c593b151dcd7
https://github.com/llvm/llvm-project/commit/17919017878e9abda5bb33a38199c593b151dcd7
Author: Daniel Sanders <daniel_l_sanders at apple.com>
Date: 2019-11-18 (Mon, 18 Nov 2019)
Changed paths:
M llvm/include/llvm/Object/MachO.h
M llvm/lib/Object/MachOObjectFile.cpp
Log Message:
-----------
[macho] Allow CPUSubtype to contribute to architecture identification
Summary:
Sometimes the CPUSubtype determines the Triple::ArchType that must be used.
Add the subtype to the API's to allow targets that need this to correctly
identify the contents of the binary.
Reviewers: pete
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D70345
Compare: https://github.com/llvm/llvm-project/compare/2492b5a12550...17919017878e
More information about the All-commits
mailing list