diff options
| author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-04-29 03:05:44 +0000 |
|---|---|---|
| committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-04-29 03:05:44 +0000 |
| commit | 4bc952f703063b7d6c819a92ab64c65610e88a3e (patch) | |
| tree | 0176c912c1831fd622d2dace7529a6b4af3c9565 /llvm/lib | |
| parent | ed55a6b5e07e8d064242230cb00c85a98b49d1a7 (diff) | |
| download | bcm5719-llvm-4bc952f703063b7d6c819a92ab64c65610e88a3e.tar.gz bcm5719-llvm-4bc952f703063b7d6c819a92ab64c65610e88a3e.zip | |
Consistently use 'class' to silence VC++
llvm-svn: 21612
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp b/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp index fea52d7cdd7..8cc8e124b8f 100644 --- a/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp +++ b/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp @@ -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. |

