Consistently use 'class' to silence VC++
authorJeff Cohen <jeffc@jolt-lang.org>
Fri, 29 Apr 2005 03:05:44 +0000 (03:05 +0000)
committerJeff Cohen <jeffc@jolt-lang.org>
Fri, 29 Apr 2005 03:05:44 +0000 (03:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21612 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/SimplifyLibCalls.cpp

index fea52d7cdd79cb0a99852ac306ec69194345fe9a..8cc8e124b8fa4dc0fc939f26e2d6585c9f678567 100644 (file)
@@ -59,8 +59,9 @@ hash_map<std::string,LibCallOptimization*> optlist;
 /// generally short-circuit actually calling the function if there's a simpler
 /// way (e.g. strlen(X) can be reduced to a constant if X is a constant global).
 /// @brief Base class for library call optimizations
-struct LibCallOptimization
+class LibCallOptimization
 {
+public:
   /// The \p fname argument must be the name of the library function being 
   /// optimized by the subclass.
   /// @brief Constructor that registers the optimization.
@@ -129,8 +130,9 @@ private:
 /// validate the call (ValidateLibraryCall). If it is validated, then
 /// the OptimizeCall method is also called.
 /// @brief A ModulePass for optimizing well-known function calls.
-struct SimplifyLibCalls : public ModulePass 
+class SimplifyLibCalls : public ModulePass 
 {
+public:
   /// We need some target data for accurate signature details that are
   /// target dependent. So we require target data in our AnalysisUsage.
   /// @brief Require TargetData from AnalysisUsage.