[DWARFFormValue] Cleanup DWARFFormValue interface. (NFC)
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 27 Feb 2019 00:58:09 +0000 (00:58 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 27 Feb 2019 00:58:09 +0000 (00:58 +0000)
commitbb111152b7e4d45aeb711be9262b252936e0c028
treeb51f6ff5fa375cb0e7028e5236afd3dd4239378f
parent25838c6dacca8203b4478ac2c16e563b51c3708b
[DWARFFormValue] Cleanup DWARFFormValue interface. (NFC)

DWARFFormValues can be created from a data extractor or by passing its
value directly. Until now this was done by member functions that
modified an existing object's internal state. This patch replaces a
subset of these methods with static method that return a new
DWARFFormValue.

llvm-svn: 354941
llvm/include/llvm/DebugInfo/DWARF/DWARFFormValue.h
llvm/lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp
llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp
llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp