diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2018-04-04 11:45:11 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2018-04-04 11:45:11 +0000 |
commit | 1fc0da48499fec0a18e790390879edcd41433d31 (patch) | |
tree | ce308572ba209cf89aaf1c77c67650827ca795e2 /llvm/lib/Transforms | |
parent | ac74acdefed9af2751d323bacef7ac47982957e8 (diff) | |
download | bcm5719-llvm-1fc0da48499fec0a18e790390879edcd41433d31.tar.gz bcm5719-llvm-1fc0da48499fec0a18e790390879edcd41433d31.zip |
Make helpers static. NFC.
llvm-svn: 329170
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))) |