[DebugInfo][NFC] Use function_ref consistently in debug line parsing
authorJames Henderson <jh7370@my.bristol.ac.uk>
Fri, 20 Dec 2019 14:30:31 +0000 (14:30 +0000)
committerJames Henderson <jh7370@my.bristol.ac.uk>
Thu, 2 Jan 2020 18:01:54 +0000 (18:01 +0000)
commitbd402fc3f3e832395b89dda4a9b8392c6b0dd6fa
treedd3af656ef3cc90e9b373fd0e123cad388f4ebb5
parent546c72a78b34966a17d37218d3a676d9eccf17f2
[DebugInfo][NFC] Use function_ref consistently in debug line parsing

This patch fixes an inconsistency where we were using std::function in
some places and function_ref in others to pass around the error handling
callback.

Reviewed by: MaskRay

Differential Revision: https://reviews.llvm.org/D71762
llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp