commit | b673bd159b2a6ec2b52d08cdcbffa37547936517 | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Mon Jul 31 15:32:39 2017 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Mon Jul 31 15:32:39 2017 +0000 |
tree | 7f6e264232dffe2346dbbffecbb7b870edf6cb54 | |
parent | 842110c5bc57ef6217353cd014cabfe220b47461 [diff] |
[DebugInfo] Don't overwrite DWARFUnit fields if the CU DIE doesn't have them. DIEs are lazily deserialized so it's possible that the DWO CU is created before the DIE is parsed. DWO shares .debug_addr and .debug_ranges with the object file so overwriting the offset with 0 will make the CU unusable. No test case because I couldn't get clang to emit a non-zero range base. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309570 91177308-0d34-0410-b5e6-96231b3b80d8