llvm/lib
Greg Clayton 1a30f4b78e Modify DWARFFormValue to remember the DWARFUnit that it was decoded with.
Modifying DWARFFormValue to remember the DWARFUnit that it was encoded with can simplify the usage of instances of this class. Previously users would have to try and pass in the same DWARFUnit that was used to decode the form value and there was a possibility that a different DWARFUnit might be supplied to the functions that extract values (strings, CU relative references, addresses) and cause problems. This fixes this potential issue by storing the DWARFUnit inside the DWARFFormValue so that this mistake can't be made. Instances of DWARFFormValue are not stored permanently and are used as temporary values, so the increase in size of an instance of DWARFFormValue isn't a big deal. This makes decoding form values more bullet proof and is a change that will be used by future modifications.

https://reviews.llvm.org/D26052



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285594 91177308-0d34-0410-b5e6-96231b3b80d8
2016-10-31 16:46:02 +00:00
..
Analysis [SCEV] Try to order n-ary expressions in CompareValueComplexity 2016-10-31 03:32:43 +00:00
AsmParser
Bitcode [ThinLTO] Use flags from summary when writing variable summary (NFC) 2016-10-28 19:36:00 +00:00
CodeGen [DAG] x | x --> x 2016-10-30 18:19:35 +00:00
DebugInfo Modify DWARFFormValue to remember the DWARFUnit that it was decoded with. 2016-10-31 16:46:02 +00:00
Demangle
ExecutionEngine
Fuzzer [libFuzzer] enable use_cmp by default 2016-10-27 21:44:37 +00:00
IR IR: Remove a no longer needed assert. 2016-10-29 20:57:12 +00:00
IRReader
LibDriver
LineEditor
Linker
LTO [ThinLTO] Correctly resolve linkonce when importing aliasee 2016-10-30 05:15:23 +00:00
MC Reverting back r285355: "Update .debug_line section version information to match DWARF version", while I'm investigating a test failure. 2016-10-27 23:20:19 +00:00
Object
ObjectYAML
Option
Passes
ProfileData
Support NativeFormatting.cpp: Fix build for mingw. Where would writePadding() be? 2016-10-29 23:14:18 +00:00
TableGen
Target [x86][inline-asm][AVX512][llvm][PART-2] 2016-10-31 16:19:58 +00:00
Transforms Second attempt at r285517. 2016-10-31 13:17:31 +00:00
CMakeLists.txt
LLVMBuild.txt