Port commit 155794 from mainline.  Original commit message:
Rather than trying to discover aliases by taking over a LTO pass, instead
output function aliases when outputting the function, and variable aliases
when outputting the variable, and weakrefs at the end of compilation unit
processing.  This makes output of function aliases more reliable, fixing a
failure to build LLVM at -O0 found during release testing.

llvm-svn: 155812
9 files changed
tree: 64e628095ea5d74c278331c3d4ce6d8c5e341e62
  1. dragonegg/