[PATCH] D23537: [LTO] Simplify APIs and constify (NFC)

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 15 17:53:38 PDT 2016


mehdi_amini created this revision.
mehdi_amini added a reviewer: tejohnson.
mehdi_amini added a subscriber: llvm-commits.
Herald added a subscriber: mehdi_amini.

Multiple APIs were taking a StringMap for the ImportLists containing
the entries for for all the modules while operating on a single entry
for the current module. Instead we can pass the desired ModuleImport
directly. Also some of the APIs were not const, I believe just to be
able to use operator[] on the StringMap.

https://reviews.llvm.org/D23537

Files:
  include/llvm/Transforms/IPO/FunctionImport.h
  lib/LTO/LTO.cpp
  lib/LTO/ThinLTOCodeGenerator.cpp
  lib/Transforms/IPO/FunctionImport.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23537.68117.patch
Type: text/x-patch
Size: 7377 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160816/9683a790/attachment.bin>


More information about the llvm-commits mailing list