diff options
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Coroutines/CoroFrame.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionImport.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp index 85423b3166c..4d7fe644629 100644 --- a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp +++ b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp @@ -309,6 +309,7 @@ static void dump(StringRef Title, SpillInfo const &Spills) { } #endif +namespace { // We cannot rely solely on natural alignment of a type when building a // coroutine frame and if the alignment specified on the Alloca instruction // differs from the natural alignment of the alloca type we will need to insert @@ -357,6 +358,7 @@ struct PaddingCalculator { return nullptr; } }; +} // namespace // Build a struct that will keep state for an active coroutine. // struct f.frame { diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index 26d7db10880..246d75caefa 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -450,7 +450,8 @@ getGUID(const std::pair<const GlobalValue::GUID, unsigned> &P) { } template <class T> -unsigned numGlobalVarSummaries(const ModuleSummaryIndex &Index, T &Cont) { +static unsigned numGlobalVarSummaries(const ModuleSummaryIndex &Index, + T &Cont) { unsigned NumGVS = 0; for (auto &V : Cont) if (isGlobalVarSummary(Index, getGUID(V))) |