Remove incredibly confusing isBaseAddressKnownZero.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 10 Mar 2015 04:11:52 +0000 (04:11 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 10 Mar 2015 04:11:52 +0000 (04:11 +0000)
commit774ad7aeb35985f768e0290ebf606c62620d36c2
treee89534a63a6b896e57f071ca60b706052d19957f
parent44292e80acfd76d3584054b059a9559f2f449390
Remove incredibly confusing isBaseAddressKnownZero.

When referring to a symbol in a dwarf section on ELF we should use

.long foo

instead of

.long foo - .debug_something

because ELF is unaware of the content of the sections and therefore needs
relocations. This has nothing to do with optimizing a -0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231751 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCSection.h
include/llvm/MC/MCSectionELF.h
lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
lib/Target/NVPTX/NVPTXSection.h