diff --git a/lib/Transforms/IPO/SimplifyLibCalls.cpp b/lib/Transforms/IPO/SimplifyLibCalls.cpp index 64e7477adcb..382bbb879e7 100644 --- a/lib/Transforms/IPO/SimplifyLibCalls.cpp +++ b/lib/Transforms/IPO/SimplifyLibCalls.cpp @@ -42,8 +42,12 @@ Statistic<> SimplifiedLibCalls("simplify-libcalls", class LibCallOptimization; class SimplifyLibCalls; +/// This hash map is populated by the constructor for LibCallOptimization class. +/// Therefore all subclasses are registered here at static initialization time +/// and this list is what the SimplifyLibCalls pass uses to apply the individual +/// optimizations to the call sites. /// @brief The list of optimizations deriving from LibCallOptimization -hash_map optlist; +static hash_map optlist; /// This class is the abstract base class for the set of optimizations that /// corresponds to one library call. The SimplifyLibCalls pass will call the