[PATCH] D74808: [MachO][NFC] Extract all CPU_(SUB_)TYPE logic to libObject
Francis Visoiu Mistrih via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 18 17:08:31 PST 2020
thegameg created this revision.
thegameg added reviewers: ab, pete, mtrent, steven_wu.
thegameg added a project: LLVM.
Herald added subscribers: jsji, dexonsmith, kbarton, hiraditya, nemanjai.
This moves all the logic of converting LLVM Triples to MachO::CPU_(SUB_)TYPE from the specific target (Target)AsmBackend to more convenient functions in libObject.
This also gets rid of the separate two X86AsmBackend classes.
https://reviews.llvm.org/D74808
Files:
llvm/include/llvm/Object/MachO.h
llvm/lib/Object/MachOObjectFile.cpp
llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
llvm/lib/Target/AArch64/MCTargetDesc/AArch64MachObjectWriter.cpp
llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackendDarwin.h
llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74808.245305.patch
Type: text/x-patch
Size: 25542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200219/fdf03897/attachment-0001.bin>
More information about the llvm-commits
mailing list