summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-27 16:14:51 +0000
committerChris Lattner <sabre@nondot.org>2004-10-27 16:14:51 +0000
commit7dfc2d29acd088a7c1f2a77f0e48e10b6a16331a (patch)
tree107e6ef532a46880025d2d53a7b4bb740b2d7df4 /llvm/lib/Transforms
parentcebf2bbe9e7bd61e2dd09f06d2c638aadaea28dd (diff)
downloadbcm5719-llvm-7dfc2d29acd088a7c1f2a77f0e48e10b6a16331a.tar.gz
bcm5719-llvm-7dfc2d29acd088a7c1f2a77f0e48e10b6a16331a.zip
Convert 'struct' to 'class' in various places to adhere to the coding standards
and work better with VC++. Patch contributed by Morten Ofstad! llvm-svn: 17281
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp2
-rw-r--r--llvm/lib/Transforms/Scalar/SCCP.cpp2
-rw-r--r--llvm/lib/Transforms/TransformInternals.h3
3 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index 00249807cac..7ad8ef403c8 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -66,7 +66,7 @@ namespace {
Instruction *InsertPt;
- friend class SCEVVisitor<SCEVExpander, Value*>;
+ friend struct SCEVVisitor<SCEVExpander, Value*>;
public:
SCEVExpander(ScalarEvolution &se, LoopInfo &li) : SE(se), LI(li) {}
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp
index aa57159b6e3..82d00b472ad 100644
--- a/llvm/lib/Transforms/Scalar/SCCP.cpp
+++ b/llvm/lib/Transforms/Scalar/SCCP.cpp
@@ -135,7 +135,7 @@ public:
// The implementation of this class
//
private:
- friend class InstVisitor<SCCP>; // Allow callbacks from visitor
+ friend struct InstVisitor<SCCP>; // Allow callbacks from visitor
// markConstant - Make a value be marked as "constant". If the value
// is not already a constant, add it to the instruction work list so that
diff --git a/llvm/lib/Transforms/TransformInternals.h b/llvm/lib/Transforms/TransformInternals.h
index 3b80146a278..b5747c91303 100644
--- a/llvm/lib/Transforms/TransformInternals.h
+++ b/llvm/lib/Transforms/TransformInternals.h
@@ -90,7 +90,8 @@ public:
typedef std::map<const Value*, const Type*> ValueTypeCache;
-struct ValueMapCache {
+class ValueMapCache {
+public:
// Operands mapped - Contains an entry if the first value (the user) has had
// the second value (the operand) mapped already.
//
OpenPOWER on IntegriCloud