Generalize emitAbsoluteSymbolDiff.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 11 Jun 2015 18:58:08 +0000 (18:58 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 11 Jun 2015 18:58:08 +0000 (18:58 +0000)
commit6c56decee0607db092e932b20f45c2825bc31684
tree7dad9133d0a096b129bb3eca480e64257cdd61b4
parentbc482286fcf06ba573338c5712daac85eaf48722
Generalize emitAbsoluteSymbolDiff.

This makes emitAbsoluteSymbolDiff always succeed and moves logic from the asm
printer to it.

The object one now also works on ELF. If two symbols are in the same fragment,
we will never move them apart.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239552 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCObjectStreamer.h
include/llvm/MC/MCStreamer.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/MC/MCObjectStreamer.cpp
lib/MC/MCStreamer.cpp