diff options
author | Duncan Sands <baldrick@free.fr> | 2009-09-06 08:55:57 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-09-06 08:55:57 +0000 |
commit | 59bf4fcc0680e75b408579064d1205a132361196 (patch) | |
tree | 4e81cdb1521beb27c54a0dd1d309d0aacbbbf5af /lib/VMCore | |
parent | b7c5bdf843419e4222770475c27932c4c8e5c303 (diff) | |
download | llvm-59bf4fcc0680e75b408579064d1205a132361196.tar.gz llvm-59bf4fcc0680e75b408579064d1205a132361196.tar.bz2 llvm-59bf4fcc0680e75b408579064d1205a132361196.tar.xz |
Public and private corrections, warned about by icc (#304).
Patch by Erick Tryzelaar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81107 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/ConstantsContext.h | 20 | ||||
-rw-r--r-- | lib/VMCore/Use.cpp | 2 | ||||
-rw-r--r-- | lib/VMCore/Verifier.cpp | 2 |
3 files changed, 12 insertions, 12 deletions
diff --git a/lib/VMCore/ConstantsContext.h b/lib/VMCore/ConstantsContext.h index 718470aff4..d634c0b202 100644 --- a/lib/VMCore/ConstantsContext.h +++ b/lib/VMCore/ConstantsContext.h @@ -235,54 +235,54 @@ struct CompareConstantExpr : public ConstantExpr { }; template <> -struct OperandTraits<UnaryConstantExpr> : FixedNumOperandTraits<1> { +struct OperandTraits<UnaryConstantExpr> : public FixedNumOperandTraits<1> { }; DEFINE_TRANSPARENT_OPERAND_ACCESSORS(UnaryConstantExpr, Value) template <> -struct OperandTraits<BinaryConstantExpr> : FixedNumOperandTraits<2> { +struct OperandTraits<BinaryConstantExpr> : public FixedNumOperandTraits<2> { }; DEFINE_TRANSPARENT_OPERAND_ACCESSORS(BinaryConstantExpr, Value) template <> -struct OperandTraits<SelectConstantExpr> : FixedNumOperandTraits<3> { +struct OperandTraits<SelectConstantExpr> : public FixedNumOperandTraits<3> { }; DEFINE_TRANSPARENT_OPERAND_ACCESSORS(SelectConstantExpr, Value) template <> -struct OperandTraits<ExtractElementConstantExpr> : FixedNumOperandTraits<2> { +struct OperandTraits<ExtractElementConstantExpr> : public FixedNumOperandTraits<2> { }; DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ExtractElementConstantExpr, Value) template <> -struct OperandTraits<InsertElementConstantExpr> : FixedNumOperandTraits<3> { +struct OperandTraits<InsertElementConstantExpr> : public FixedNumOperandTraits<3> { }; DEFINE_TRANSPARENT_OPERAND_ACCESSORS(InsertElementConstantExpr, Value) template <> -struct OperandTraits<ShuffleVectorConstantExpr> : FixedNumOperandTraits<3> { +struct OperandTraits<ShuffleVectorConstantExpr> : public FixedNumOperandTraits<3> { }; DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ShuffleVectorConstantExpr, Value) template <> -struct OperandTraits<ExtractValueConstantExpr> : FixedNumOperandTraits<1> { +struct OperandTraits<ExtractValueConstantExpr> : public FixedNumOperandTraits<1> { }; DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ExtractValueConstantExpr, Value) template <> -struct OperandTraits<InsertValueConstantExpr> : FixedNumOperandTraits<2> { +struct OperandTraits<InsertValueConstantExpr> : public FixedNumOperandTraits<2> { }; DEFINE_TRANSPARENT_OPERAND_ACCESSORS(InsertValueConstantExpr, Value) template <> -struct OperandTraits<GetElementPtrConstantExpr> : VariadicOperandTraits<1> { +struct OperandTraits<GetElementPtrConstantExpr> : public VariadicOperandTraits<1> { }; DEFINE_TRANSPARENT_OPERAND_ACCESSORS(GetElementPtrConstantExpr, Value) template <> -struct OperandTraits<CompareConstantExpr> : FixedNumOperandTraits<2> { +struct OperandTraits<CompareConstantExpr> : public FixedNumOperandTraits<2> { }; DEFINE_TRANSPARENT_OPERAND_ACCESSORS(CompareConstantExpr, Value) diff --git a/lib/VMCore/Use.cpp b/lib/VMCore/Use.cpp index b25415a3d1..b7fd92f9b0 100644 --- a/lib/VMCore/Use.cpp +++ b/lib/VMCore/Use.cpp @@ -128,7 +128,7 @@ void Use::zap(Use *Start, const Use *Stop, bool del) { // AugmentedUse layout struct //===----------------------------------------------------------------------===// -struct AugmentedUse : Use { +struct AugmentedUse : public Use { PointerIntPair<User*, 1, Tag> ref; AugmentedUse(); // not implemented }; diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index eed4e2d7a6..39f7faac43 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -106,7 +106,7 @@ static const PassInfo *const PreVerifyID = &PreVer; namespace { struct VISIBILITY_HIDDEN - Verifier : public FunctionPass, InstVisitor<Verifier> { + Verifier : public FunctionPass, public InstVisitor<Verifier> { static char ID; // Pass ID, replacement for typeid bool Broken; // Is this module found to be broken? bool RealPass; // Are we not being run by a PassManager? |