Object, LTO: Add target triple to irsymtab and LTO API.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 14 Apr 2017 02:55:06 +0000 (02:55 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 14 Apr 2017 02:55:06 +0000 (02:55 +0000)
commit8446f1fe6a5afd89c0f24e5500fce675390ce87b
tree800cf0ab92411704f2b4e6b82f0ce7a799476045
parent2f72b19b05e86321b40c048ed7fdd0a9637d93d8
Object, LTO: Add target triple to irsymtab and LTO API.

Start using it in LLD to avoid needing to read bitcode again just to get the
target triple, and in llvm-lto2 to avoid printing symbol table information
that is inappropriate for the target.

Differential Revision: https://reviews.llvm.org/D32038

llvm-svn: 300300
lld/COFF/InputFiles.cpp
lld/ELF/InputFiles.cpp
lld/ELF/InputFiles.h
llvm/include/llvm/LTO/LTO.h
llvm/include/llvm/Object/IRSymtab.h
llvm/lib/LTO/LTO.cpp
llvm/lib/Object/IRSymtab.cpp
llvm/test/LTO/Resolution/X86/symtab-elf.ll [new file with mode: 0644]
llvm/test/LTO/Resolution/X86/symtab.ll
llvm/tools/llvm-lto2/llvm-lto2.cpp