1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test
Raphael Isemann 9670741b0c [ObjC][DWARF] Emit DW_AT_APPLE_objc_direct for methods marked as __attribute__((objc_direct))
Summary:
With DWARF5 it is no longer possible to distinguish normal methods and methods with `__attribute__((objc_direct))` by just looking at the debug information
as they are both now children of the of the DW_TAG_structure_type that defines them (before only the `__attribute__((objc_direct))` methods were children).

This means that in LLDB we are no longer able to create a correct Clang AST of a module by just looking at the debug information. Instead we would
need to call the Objective-C runtime to see which of the methods have a `__attribute__((objc_direct))` and then add the attribute to our own Clang AST
depending on what the runtime returns. This would mean that we either let the module AST be dependent on the Objective-C runtime (which doesn't
seem right) or we retroactively add the missing attribute to the imported AST in our expressions.

A third option is to annotate methods with `__attribute__((objc_direct))` as `DW_AT_APPLE_objc_direct` which is what this patch implements. This way
LLDB doesn't have to call the runtime for any `__attribute__((objc_direct))` method and the AST in our module will already be correct when we create it.

Reviewers: aprantl, SouraVX

Reviewed By: aprantl

Subscribers: hiraditya, cfe-commits, llvm-commits

Tags: #clang, #llvm, #debug-info

Differential Revision: https://reviews.llvm.org/D71201
2019-12-17 09:40:36 +01:00
..
Analysis [BasicAA] Use GEP as context for computeKnownBits in aliasGEP. 2019-12-12 17:18:04 +00:00
Assembler
Bindings
Bitcode
BugPoint [Bugpoint] Do not create illegal function attribute combos 2019-12-16 10:32:35 -06:00
CodeGen [NFC][Test][PowerPC] Add the test to verify the mask with constant 2019-12-17 07:04:19 +00:00
DebugInfo [ObjC][DWARF] Emit DW_AT_APPLE_objc_direct for methods marked as __attribute__((objc_direct)) 2019-12-17 09:40:36 +01:00
Demangle
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation hwasan: add tag_offset DWARF attribute to optimized debug info 2019-12-12 16:18:54 -08:00
Integer
JitListener
Linker
LTO [LTO] Support for embedding bitcode section during LTO 2019-12-12 12:34:19 -08:00
MachineVerifier
MC [RISCV] Move DebugLoc Copy into CompressInstEmitter 2019-12-13 20:01:04 +00:00
Object [llvm-readelf/llvm-readobj] - Improved the error reporting in a few method related to versioning. 2019-12-10 13:08:18 +03:00
ObjectYAML
Other Revert "[VectorUtils] Introduce the Vector Function Database (VFDatabase)." 2019-12-13 19:42:04 +00:00
Reduce
SafepointIRVerifier
Support
SymbolRewriter
TableGen [IR] Split out target specific intrinsic enums into separate headers 2019-12-11 18:02:14 -08:00
ThinLTO/X86
tools Only run mangled_names.test if python3 is available. 2019-12-16 14:27:54 -05:00
Transforms [LoopFusion] Restrict loop fusion to rotated loops. 2019-12-16 15:17:29 -05:00
Unit
Verifier Verifier: Check frame-pointer attribute values 2019-12-11 19:53:49 +05:30
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh