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)
commit1c9687eed2f17fa478751d6737d9ef1bd4075b22
tree2a89b66b89dd998438c57408bfefbb19fe225bbf
parent2291f8cf898be0812acd846ee1ffa83f64361460
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212349 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/LTO/LTOModule.h
include/llvm/Object/IRObjectFile.h
lib/LTO/LTOCodeGenerator.cpp
lib/LTO/LTOModule.cpp
lib/Object/IRObjectFile.cpp