diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2019-09-17 12:56:29 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2019-09-17 12:56:29 +0000 |
| commit | df4b9a3f4f7acf76968540391223ec23844e6aa7 (patch) | |
| tree | 737a845185ffdd2e1614905f5f933ee1d7a6c130 /llvm/lib/Transforms | |
| parent | 88b4b9f97391e8beec02fe1f0a4d16e1b0e12610 (diff) | |
| download | bcm5719-llvm-df4b9a3f4f7acf76968540391223ec23844e6aa7.tar.gz bcm5719-llvm-df4b9a3f4f7acf76968540391223ec23844e6aa7.zip | |
Hide implementation details in namespaces.
llvm-svn: 372113
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/IPO/Attributor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp index 654f2084be4..0f5d2aa8e17 100644 --- a/llvm/lib/Transforms/IPO/Attributor.cpp +++ b/llvm/lib/Transforms/IPO/Attributor.cpp @@ -161,7 +161,7 @@ ChangeStatus llvm::operator&(ChangeStatus l, ChangeStatus r) { /// limit how much effort is invested, we will never visit more values than /// specified by \p MaxValues. template <typename AAType, typename StateTy> -bool genericValueTraversal( +static bool genericValueTraversal( Attributor &A, IRPosition IRP, const AAType &QueryingAA, StateTy &State, const function_ref<bool(Value &, StateTy &, bool)> &VisitValueCB, int MaxValues = 8) { @@ -486,6 +486,7 @@ void IRPosition::verify() { } } +namespace { /// Helper functions to clamp a state \p S of type \p StateType with the /// information in \p R and indicate/return if \p S did change (as-in update is /// required to be run again). @@ -3406,6 +3407,7 @@ struct AAHeapToStackFunction final : public AAHeapToStackImpl { BUILD_STAT_NAME(MallocCalls, Function) += MallocCalls.size(); } }; +} // namespace /// ---------------------------------------------------------------------------- /// Attributor |

