[PATCH] D64774: [DebugInfo] Move function from line table to the prologue (NFC)

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 15 17:56:07 PDT 2019


phosek added a comment.

This change broke lld:

  /b/s/w/ir/k/llvm-project/lld/ELF/InputFiles.cpp:323:28: error: conversion function from 'nullptr_t' to 'llvm::StringRef' invokes a deleted function
            it->second.file, nullptr,
                             ^~~~~~~
  /b/s/w/ir/k/llvm-project/lld/ELF/InputFiles.cpp:1637:21: note: in instantiation of member function 'lld::elf::ObjFile<llvm::object::ELFType<llvm::support::little, false> >::getVariableLoc' requested here
  template class elf::ObjFile<ELF32LE>;
                      ^
  /b/s/w/ir/k/llvm-project/llvm/include/llvm/ADT/StringRef.h:79:5: note: 'StringRef' has been explicitly marked deleted here
      StringRef(std::nullptr_t) = delete;
      ^
  /b/s/w/ir/k/llvm-project/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:263:59: note: passing argument to parameter 'CompDir' here
      bool getFileNameByIndex(uint64_t FileIndex, StringRef CompDir,
                                                            ^
  /b/s/w/ir/k/llvm-project/lld/ELF/InputFiles.cpp:323:28: error: conversion function from 'nullptr_t' to 'llvm::StringRef' invokes a deleted function
            it->second.file, nullptr,
                             ^~~~~~~
  /b/s/w/ir/k/llvm-project/lld/ELF/InputFiles.cpp:1638:21: note: in instantiation of member function 'lld::elf::ObjFile<llvm::object::ELFType<llvm::support::big, false> >::getVariableLoc' requested here
  template class elf::ObjFile<ELF32BE>;
                      ^
  /b/s/w/ir/k/llvm-project/llvm/include/llvm/ADT/StringRef.h:79:5: note: 'StringRef' has been explicitly marked deleted here
      StringRef(std::nullptr_t) = delete;
      ^
  /b/s/w/ir/k/llvm-project/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:263:59: note: passing argument to parameter 'CompDir' here
      bool getFileNameByIndex(uint64_t FileIndex, StringRef CompDir,
                                                            ^
  /b/s/w/ir/k/llvm-project/lld/ELF/InputFiles.cpp:323:28: error: conversion function from 'nullptr_t' to 'llvm::StringRef' invokes a deleted function
            it->second.file, nullptr,
                             ^~~~~~~
  /b/s/w/ir/k/llvm-project/lld/ELF/InputFiles.cpp:1639:21: note: in instantiation of member function 'lld::elf::ObjFile<llvm::object::ELFType<llvm::support::little, true> >::getVariableLoc' requested here
  template class elf::ObjFile<ELF64LE>;
                      ^
  /b/s/w/ir/k/llvm-project/llvm/include/llvm/ADT/StringRef.h:79:5: note: 'StringRef' has been explicitly marked deleted here
      StringRef(std::nullptr_t) = delete;
      ^
  /b/s/w/ir/k/llvm-project/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:263:59: note: passing argument to parameter 'CompDir' here
      bool getFileNameByIndex(uint64_t FileIndex, StringRef CompDir,
                                                            ^
  /b/s/w/ir/k/llvm-project/lld/ELF/InputFiles.cpp:323:28: error: conversion function from 'nullptr_t' to 'llvm::StringRef' invokes a deleted function
            it->second.file, nullptr,
                             ^~~~~~~
  /b/s/w/ir/k/llvm-project/lld/ELF/InputFiles.cpp:1640:21: note: in instantiation of member function 'lld::elf::ObjFile<llvm::object::ELFType<llvm::support::big, true> >::getVariableLoc' requested here
  template class elf::ObjFile<ELF64BE>;
                      ^
  /b/s/w/ir/k/llvm-project/llvm/include/llvm/ADT/StringRef.h:79:5: note: 'StringRef' has been explicitly marked deleted here
      StringRef(std::nullptr_t) = delete;
      ^
  /b/s/w/ir/k/llvm-project/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:263:59: note: passing argument to parameter 'CompDir' here
      bool getFileNameByIndex(uint64_t FileIndex, StringRef CompDir,
                                                            ^
  4 errors generated.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64774/new/

https://reviews.llvm.org/D64774





More information about the llvm-commits mailing list