Support `#pragma clang section` directives on MachO targets
authorJon Roelofs <jonathan_roelofs@apple.com>
Tue, 23 Feb 2021 16:01:27 +0000 (08:01 -0800)
committerJon Roelofs <jonathan_roelofs@apple.com>
Thu, 25 Feb 2021 17:30:10 +0000 (09:30 -0800)
commit7f6e3316456f939a062aad0eeaac983251a1747c
treed8ee90dbc3a50e8000ad5a4f9b3b6429f0602bab
parentceaedfb5fc3a94adf9e67616d65414ddfee71e24
Support `#pragma clang section` directives on MachO targets

rdar://59560986

Differential Revision: https://reviews.llvm.org/D97233
13 files changed:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Basic/TargetInfo.h
clang/lib/Basic/Targets/OSTargets.h
clang/lib/Sema/SemaAttr.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/CodeGenCXX/clang-sections.cpp
clang/test/Sema/pragma-clang-section-macho.c [new file with mode: 0644]
llvm/include/llvm/MC/MCSectionMachO.h
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/lib/MC/MCParser/DarwinAsmParser.cpp
llvm/lib/MC/MCSectionMachO.cpp
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
llvm/test/CodeGen/AArch64/clang-section-macho.ll [new file with mode: 0644]