diff options
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/IR/ModuleSummaryIndex.h | 10 | ||||
| -rw-r--r-- | llvm/include/llvm/IR/ModuleSummaryIndexYAML.h | 2 | ||||
| -rw-r--r-- | llvm/include/llvm/LTO/LTO.h | 8 |
3 files changed, 4 insertions, 16 deletions
diff --git a/llvm/include/llvm/IR/ModuleSummaryIndex.h b/llvm/include/llvm/IR/ModuleSummaryIndex.h index 967b5c7a859..c710c41cccd 100644 --- a/llvm/include/llvm/IR/ModuleSummaryIndex.h +++ b/llvm/include/llvm/IR/ModuleSummaryIndex.h @@ -126,14 +126,11 @@ public: /// llvm.global_ctors that the linker does not know about. unsigned LiveRoot : 1; - /// Indicate if the global value should be hidden. - unsigned AutoHide : 1; - /// Convenience Constructors explicit GVFlags(GlobalValue::LinkageTypes Linkage, - bool NotEligibleToImport, bool LiveRoot, bool AutoHide) + bool NotEligibleToImport, bool LiveRoot) : Linkage(Linkage), NotEligibleToImport(NotEligibleToImport), - LiveRoot(LiveRoot), AutoHide(AutoHide) {} + LiveRoot(LiveRoot) {} }; private: @@ -201,9 +198,6 @@ public: Flags.Linkage = Linkage; } - /// Sets the visibility to be autohidden. - void setAutoHide() { Flags.AutoHide = true; } - /// Return true if this global value can't be imported. bool notEligibleToImport() const { return Flags.NotEligibleToImport; } diff --git a/llvm/include/llvm/IR/ModuleSummaryIndexYAML.h b/llvm/include/llvm/IR/ModuleSummaryIndexYAML.h index c880abfea24..e2880ec6fec 100644 --- a/llvm/include/llvm/IR/ModuleSummaryIndexYAML.h +++ b/llvm/include/llvm/IR/ModuleSummaryIndexYAML.h @@ -79,7 +79,7 @@ template <> struct CustomMappingTraits<GlobalValueSummaryMapTy> { auto &Elem = V[KeyInt]; for (auto &FSum : FSums) { GlobalValueSummary::GVFlags GVFlags(GlobalValue::ExternalLinkage, false, - false, /* AutoHide */ false); + false); Elem.push_back(llvm::make_unique<FunctionSummary>( GVFlags, 0, ArrayRef<ValueInfo>{}, ArrayRef<FunctionSummary::EdgeTy>{}, std::move(FSum.TypeTests))); diff --git a/llvm/include/llvm/LTO/LTO.h b/llvm/include/llvm/LTO/LTO.h index c346ec522df..2aeb7e8fda9 100644 --- a/llvm/include/llvm/LTO/LTO.h +++ b/llvm/include/llvm/LTO/LTO.h @@ -53,18 +53,12 @@ void thinLTOResolveWeakForLinkerInIndex( function_ref<void(StringRef, GlobalValue::GUID, GlobalValue::LinkageTypes)> recordNewLinkage); -/// This enum is used for the returned value of the callback passed to -/// thinLTOInternalizeAndPromoteInIndex, it indicates if a symbol can be made -/// Internal (only referenced from its defining object), Hidden ( -/// outside the DSO), or Exported (exposed as public API for the DSO). -enum SummaryResolution { Internal, Hidden, Exported }; - /// Update the linkages in the given \p Index to mark exported values /// as external and non-exported values as internal. The ThinLTO backends /// must apply the changes to the Module via thinLTOInternalizeModule. void thinLTOInternalizeAndPromoteInIndex( ModuleSummaryIndex &Index, - function_ref<SummaryResolution(StringRef, GlobalValue::GUID)> isExported); + function_ref<bool(StringRef, GlobalValue::GUID)> isExported); namespace lto { |

