[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

Jeff Cohen jeffc at jolt-lang.org
Thu Apr 28 20:05:55 PDT 2005



Changes in directory llvm/lib/Transforms/IPO:

SimplifyLibCalls.cpp updated: 1.21 -> 1.22
---
Log message:

Consistently use 'class' to silence VC++

---
Diffs of the changes:  (+4 -2)

 SimplifyLibCalls.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


Index: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
diff -u llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.21 llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.22
--- llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.21	Thu Apr 28 13:05:16 2005
+++ llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp	Thu Apr 28 22:05:44 2005
@@ -59,8 +59,9 @@
 /// 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 @@
 /// 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.






More information about the llvm-commits mailing list