OSDN Git Service

Be consistent in using class vs struct to make VC++ happy. And as it contains
authorJeff Cohen <jeffc@jolt-lang.org>
Wed, 4 Jan 2006 17:21:23 +0000 (17:21 +0000)
committerJeff Cohen <jeffc@jolt-lang.org>
Wed, 4 Jan 2006 17:21:23 +0000 (17:21 +0000)
methods, virtual method even, class wins.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25098 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Pass.h

index 90e614d..26b812e 100644 (file)
@@ -311,7 +311,8 @@ private:
 ///      other basic block in the function.
 ///   3. Optimizations conform to all of the constraints of FunctionPasses.
 ///
-struct BasicBlockPass : public FunctionPass {
+class BasicBlockPass : public FunctionPass {
+public:
   /// doInitialization - Virtual method overridden by subclasses to do
   /// any necessary per-module initialization.
   ///