]> granicus.if.org Git - llvm/commit
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)
commit376a50ec1cfa1d2275405a29c3a4d6a9d9f23c28
treeb3bc9ff14fdb8ddd6f24ff633c117cabc56aa0a8
parent03bb65ceece39a9c44d33577ca5cc66b91c973d9
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).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373533 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfFile.h