[all-commits] [llvm/llvm-project] e4e7e4: Add an SDK attribute to DICompileUnit

adrian-prantl via All-commits all-commits at lists.llvm.org
Wed Mar 11 14:14:27 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e4e7e44765c27c788a2a679004f1f65e1fca8005
      https://github.com/llvm/llvm-project/commit/e4e7e44765c27c788a2a679004f1f65e1fca8005
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2020-03-11 (Wed, 11 Mar 2020)

  Changed paths:
    M llvm/bindings/go/llvm/dibuilder.go
    M llvm/include/llvm-c/DebugInfo.h
    M llvm/include/llvm/BinaryFormat/Dwarf.def
    M llvm/include/llvm/IR/DIBuilder.h
    M llvm/include/llvm/IR/DebugInfoMetadata.h
    M llvm/lib/AsmParser/LLParser.cpp
    M llvm/lib/Bitcode/Reader/MetadataLoader.cpp
    M llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
    M llvm/lib/IR/AsmWriter.cpp
    M llvm/lib/IR/DIBuilder.cpp
    M llvm/lib/IR/DebugInfo.cpp
    M llvm/lib/IR/DebugInfoMetadata.cpp
    M llvm/test/DebugInfo/X86/split-dwarf-sysroot.ll
    M llvm/tools/llvm-c-test/debuginfo.c
    M llvm/unittests/IR/MetadataTest.cpp

  Log Message:
  -----------
  Add an SDK attribute to DICompileUnit

This is part of PR44213 https://bugs.llvm.org/show_bug.cgi?id=44213

When importing (system) Clang modules, LLDB needs to know which SDK
(e.g., MacOSX, iPhoneSimulator, ...) they came from. While the sysroot
attribute contains the absolute path to the SDK, this doesn't work
well when the debugger is run on a different machine than the
compiler, and the SDKs are installed in different directories. It thus
makes sense to just store the name of the SDK instead of the absolute
path, so it can be found relative to LLDB.

rdar://problem/51645582

Differential Revision: https://reviews.llvm.org/D75646




More information about the All-commits mailing list