DebugInfo: Simplify RangeSpan to be a plain struct
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 2 Oct 2019 22:27:24 +0000 (22:27 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 2 Oct 2019 22:27:24 +0000 (22:27 +0000)
commitb677cb8dc74d2c409214833c27d37a4bda001f37
tree4c6696730ef27dec2115dd6c5dfb21bf8d99ede1
parent4d39410b1e0896f7b39be15b42de35b96faaee6c
DebugInfo: Simplify RangeSpan to be a plain struct

This is an effort to make RangeSpan and DebugLocStream::Entry more
similar to share code for their emission (to reuse the more complicated
code for using (& choosing when to use) base address selection entries,
etc).

It didn't seem like this struct was worth the complexity of
encapsulation - when the members could be initialized by the ctor to any
value (no validation) and the type is assignable (so there's no
mutability or other constraint being implemented by its interface).

llvm-svn: 373533
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfFile.h