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)
commitd12b4a334b01bb1b39d2b9f76a9a296aacf6e226
tree60ce562d184b30ec8aaa0e27582656ab91f07b27
parentea51161a9495206bce5b49f552f1a0bdff99a0b1
Update the error handling of lib/Linker.

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

llvm-svn: 220608
12 files changed:
llvm/include/llvm/IR/DiagnosticInfo.h
llvm/include/llvm/LTO/LTOCodeGenerator.h
llvm/include/llvm/Linker/Linker.h
llvm/lib/LTO/LTOCodeGenerator.cpp
llvm/lib/Linker/LinkModules.cpp
llvm/tools/bugpoint/BugDriver.cpp
llvm/tools/bugpoint/Miscompilation.cpp
llvm/tools/gold/gold-plugin.cpp
llvm/tools/llvm-link/llvm-link.cpp
llvm/tools/llvm-lto/llvm-lto.cpp
llvm/tools/lto/lto.cpp
llvm/unittests/Linker/LinkModulesTest.cpp