1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00

Make the registration hash_map static. No other module needs it. Also,

document what its for a little better.

llvm-svn: 22164
This commit is contained in:
Reid Spencer 2005-05-21 01:27:04 +00:00
parent 6c0f6b6458
commit 59580db70f

View File

@ -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<std::string,LibCallOptimization*> optlist;
static hash_map<std::string,LibCallOptimization*> 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