Changeset beeeb59 in rtems-tools


Ignore:
Timestamp:
12/17/19 13:51:19 (4 years ago)
Author:
Christian Mauderer <Christian.Mauderer@…>
Branches:
5, master
Children:
7045cc3
Parents:
e2c8c49
git-author:
Christian Mauderer <Christian.Mauderer@…> (12/17/19 13:51:19)
git-committer:
Christian Mauderer <oss@…> (12/18/19 08:11:35)
Message:

record: Allow to compile with recent llvm version.

It seems that the API for symbolizeCode changed between llvm8 and llvm9.
This patch uses the same adaption that is used for the llvm-symbolizer
tool in llvm commit b2c4b8bded3ff2efaaebe0d8b33c65116f9ef8de.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trace/record/record-main-lttng.cc

    re2c8c49 rbeeeb59  
    324324#ifdef HAVE_LLVM_DEBUGINFO_SYMBOLIZE_SYMBOLIZE_H
    325325  if (resolve_address_) {
    326     auto res_or_err = symbolizer_.symbolizeCode(elf_file_, item.data);
     326    auto res_or_err = symbolizer_.symbolizeCode(elf_file_,
     327#if LLVM_VERSION_MAJOR >= 9
     328      {item.data, llvm::object::SectionedAddress::UndefSection});
     329#else
     330      item.data);
     331#endif
    327332
    328333    if (res_or_err) {
Note: See TracChangeset for help on using the changeset viewer.