diff options
author | Teresa Johnson <tejohnson@google.com> | 2016-03-15 00:04:37 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2016-03-15 00:04:37 +0000 |
commit | 26ab5772b058fcddabfecb6736a3b78c67bc1751 (patch) | |
tree | 89b82d60f6e4ef3d7970cf1dc620c4f3a78bad2e /llvm/lib/IR | |
parent | da8b3f1914e0cc4eb25af376583a23e660718115 (diff) | |
download | bcm5719-llvm-26ab5772b058fcddabfecb6736a3b78c67bc1751.tar.gz bcm5719-llvm-26ab5772b058fcddabfecb6736a3b78c67bc1751.zip |
[ThinLTO] Renaming of function index to module summary index (NFC)
(Resubmitting after fixing missing file issue)
With the changes in r263275, there are now more than just functions in
the summary. Completed the renaming of data structures (started in
r263275) to reflect the wider scope. In particular, changed the
FunctionIndex* data structures to ModuleIndex*, and renamed related
variables and comments. Also renamed the files to reflect the changes.
A companion clang patch will immediately succeed this patch to reflect
this renaming.
llvm-svn: 263513
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r-- | llvm/lib/IR/CMakeLists.txt | 2 | ||||
-rw-r--r-- | llvm/lib/IR/ModuleSummaryIndex.cpp (renamed from llvm/lib/IR/FunctionInfo.cpp) | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/IR/CMakeLists.txt b/llvm/lib/IR/CMakeLists.txt index 45f7e31aa53..554ea1422a1 100644 --- a/llvm/lib/IR/CMakeLists.txt +++ b/llvm/lib/IR/CMakeLists.txt @@ -37,12 +37,12 @@ add_llvm_library(LLVMCore Mangler.cpp Metadata.cpp Module.cpp + ModuleSummaryIndex.cpp Operator.cpp Pass.cpp PassManager.cpp PassRegistry.cpp Statepoint.cpp - FunctionInfo.cpp Type.cpp TypeFinder.cpp Use.cpp diff --git a/llvm/lib/IR/FunctionInfo.cpp b/llvm/lib/IR/ModuleSummaryIndex.cpp index e9a598d1435..16b58ddbeff 100644 --- a/llvm/lib/IR/FunctionInfo.cpp +++ b/llvm/lib/IR/ModuleSummaryIndex.cpp @@ -1,4 +1,4 @@ -//===-- FunctionInfo.cpp - Function Info Index ----------------------------===// +//===-- ModuleSummaryIndex.cpp - Module Summary Index ---------------------===// // // The LLVM Compiler Infrastructure // @@ -12,14 +12,14 @@ // //===----------------------------------------------------------------------===// -#include "llvm/IR/FunctionInfo.h" +#include "llvm/IR/ModuleSummaryIndex.h" #include "llvm/ADT/StringMap.h" using namespace llvm; // Create the combined module index/summary from multiple // per-module instances. -void FunctionInfoIndex::mergeFrom(std::unique_ptr<FunctionInfoIndex> Other, - uint64_t NextModuleId) { +void ModuleSummaryIndex::mergeFrom(std::unique_ptr<ModuleSummaryIndex> Other, + uint64_t NextModuleId) { StringRef ModPath; for (auto &OtherGlobalValInfoLists : *Other) { @@ -55,7 +55,7 @@ void FunctionInfoIndex::mergeFrom(std::unique_ptr<FunctionInfoIndex> Other, } } -void FunctionInfoIndex::removeEmptySummaryEntries() { +void ModuleSummaryIndex::removeEmptySummaryEntries() { for (auto MI = begin(), MIE = end(); MI != MIE;) { // Only expect this to be called on a per-module index, which has a single // entry per value entry list. |