Common symbols don't have a value.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 7 Jul 2015 15:05:09 +0000 (15:05 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 7 Jul 2015 15:05:09 +0000 (15:05 +0000)
commit9ca3a03969cda2b5cbaabecd3f9634266fdaa2ca
tree177430d7b7b9c9a3370064217e9c78827a252956
parent08c4cbeeae771c680cce154c22b735ff0c63267d
Common symbols don't have a value.

At least not in the interface exposed by ObjectFile. This matches what ELF and
COFF implement.

Adjust existing code that was expecting them to have values. No overall
functionality change intended.

Another option would be to change the interface and the ELF and COFF
implementations to say that the value of a common symbol is its size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241593 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/MachOObjectFile.cpp
tools/dsymutil/DebugMap.cpp
tools/dsymutil/MachODebugMapParser.cpp