[cfe-commits] r46754 - /cfe/trunk/Analysis/ValueState.h
Ted Kremenek
kremenek at apple.com
Tue Feb 5 10:17:59 PST 2008
Author: kremenek
Date: Tue Feb 5 12:17:58 2008
New Revision: 46754
URL: http://llvm.org/viewvc/llvm-project?rev=46754&view=rev
Log:
Reordered fields/methods in ValueState to make it more aesthetically pleasing.
Modified:
cfe/trunk/Analysis/ValueState.h
Modified: cfe/trunk/Analysis/ValueState.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/ValueState.h?rev=46754&r1=46753&r2=46754&view=diff
==============================================================================
--- cfe/trunk/Analysis/ValueState.h (original)
+++ cfe/trunk/Analysis/ValueState.h Tue Feb 5 12:17:58 2008
@@ -140,14 +140,24 @@
class ValueState : public llvm::FoldingSetNode {
ValueStateImpl* Data;
public:
+ ValueState(ValueStateImpl* D) : Data(D) {}
+ ValueState() : Data(0) {}
+ void operator=(ValueStateImpl* D) { Data = D; }
+
+ // Accessors.
+
+ ValueStateImpl* getImpl() const { return Data; }
+
+ // Iterators.
+
typedef vstate::VariableBindingsTy VariableBindingsTy;
typedef VariableBindingsTy::iterator iterator;
-
-
iterator begin() { return Data->VariableBindings.begin(); }
iterator end() { return Data->VariableBindings.end(); }
+ // Profiling and equality testing.
+
bool operator==(const ValueState& RHS) const {
return Data == RHS.Data;
}
@@ -159,15 +169,6 @@
void Profile(llvm::FoldingSetNodeID& ID) const {
Profile(ID, *this);
}
-
- ValueState(ValueStateImpl* D) : Data(D) {}
- ValueState() : Data(0) {}
-
- void operator=(ValueStateImpl* D) {
- Data = D;
- }
-
- ValueStateImpl* getImpl() const { return Data; }
};
template<> struct GRTrait<ValueState> {
More information about the cfe-commits
mailing list