[lto] Add saving the LTO .o file to -save-temps.
authorSean Silva <chisophugis@gmail.com>
Wed, 9 Mar 2016 22:30:05 +0000 (22:30 +0000)
committerSean Silva <chisophugis@gmail.com>
Wed, 9 Mar 2016 22:30:05 +0000 (22:30 +0000)
commit4aaeac6ad3e3bf8c33274b6daf67c1c0d917c5d1
treebf7f4bbc5617afccdbd1f023b6463625300e75e7
parent9f6c4d50b4b934e97e3e4bd1160df573b203ad0d
[lto] Add saving the LTO .o file to -save-temps.

Summary:
This implements another part of -save-temps.
After this, the only remaining part is dumping the optimized bitcode. But
currently LLD's LTO doesn't have a non-intrusive place to put this.
Eventually we probably will and it will make sense to add it then.

Reviewers: ruiu, rafael

Subscribers: joker.eph, Bigcheese, llvm-commits

Differential Revision: http://reviews.llvm.org/D18009

llvm-svn: 263070
lld/ELF/SymbolTable.cpp
lld/test/ELF/lto/save-temps.ll