OSDN Git Service

Add a special streamer to libLTO that just records symbols definitions and
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 2 Mar 2011 04:14:42 +0000 (04:14 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 2 Mar 2011 04:14:42 +0000 (04:14 +0000)
commit38c4e535493363b96eac47af9e7c056530137bea
tree02b99cf243d4f23b72a93f2f8d3fa49ff82cba67
parentf7af396c9571e4efe944c5bf739bce667f99556a
Add a special streamer to libLTO that just records symbols definitions and
uses.

The result produced by the streamer is used to give the linker more accurate
information and to add to llvm.compiler.used. The second improvement removes
the need for the user to add __attribute__((used)) to functions only used in
inline asm. The first one lets us build firefox with LTO on Darwin :-)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126830 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Module.h
lib/AsmParser/LLParser.cpp
lib/VMCore/AsmWriter.cpp
tools/lto/LTOCodeGenerator.cpp
tools/lto/LTOCodeGenerator.h
tools/lto/LTOModule.cpp
tools/lto/LTOModule.h