Update the error handling of lib/Linker.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 25 Oct 2014 04:06:10 +0000 (04:06 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 25 Oct 2014 04:06:10 +0000 (04:06 +0000)
commit72478e59c7dfb01870a8f6b5ae6c7e1fb18719c3
tree70c6240aa1202a26a1f6a312833e645c295dd791
parent1d1d705a95e4a93137382e950ea1d34767d0b9f0
Update the error handling of lib/Linker.

Instead of passing a std::string&, use the new diagnostic infrastructure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220608 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/IR/DiagnosticInfo.h
include/llvm/LTO/LTOCodeGenerator.h
include/llvm/Linker/Linker.h
lib/LTO/LTOCodeGenerator.cpp
lib/Linker/LinkModules.cpp
tools/bugpoint/BugDriver.cpp
tools/bugpoint/Miscompilation.cpp
tools/gold/gold-plugin.cpp
tools/llvm-link/llvm-link.cpp
tools/llvm-lto/llvm-lto.cpp
tools/lto/lto.cpp
unittests/Linker/LinkModulesTest.cpp