Implement LTOModule on top of IRObjectFile.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 4 Jul 2014 18:40:36 +0000 (18:40 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 4 Jul 2014 18:40:36 +0000 (18:40 +0000)
commitdddd1fd9f44ee04b9fb1081a5e03075fde1398a3
tree48ab093dc1b6faca55a8e15c38c1438fe160c874
parent0972d41c73a9fde57c6f16fb10c4743c4051cdfb
Implement LTOModule on top of IRObjectFile.

IRObjectFile provides all the logic for producing mangled names and getting
symbols from inline assembly.

LTOModule then adds logic for linking specific tasks, like constructing
llvm.compiler_user or extracting linker options from the bitcode.

The rule of the thumb is that IRObjectFile has the functionality that is
needed by both LTO and llvm-ar.

llvm-svn: 212349
llvm/include/llvm/LTO/LTOModule.h
llvm/include/llvm/Object/IRObjectFile.h
llvm/lib/LTO/LTOCodeGenerator.cpp
llvm/lib/LTO/LTOModule.cpp
llvm/lib/Object/IRObjectFile.cpp