tejohnson added a comment. Couple more comments: - needs test - can this be moved out of LTOCodeGenerator so that it can be invoked from other paths (e.g. gold)? Maybe into FunctionImportUtils.cpp? http://reviews.llvm.org/D18346