File tree 1 file changed +12
-7
lines changed
clang/lib/Analysis/FlowSensitive 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,18 @@ bool areEquivalentValues(const Value &Val1, const Value &Val2) {
34
34
35
35
raw_ostream &operator <<(raw_ostream &OS, const Value &Val) {
36
36
switch (Val.getKind ()) {
37
- case Value::Kind::Pointer: {
38
- const auto *PV = dyn_cast<PointerValue>(&Val);
39
- return OS << " Pointer(" << &PV->getPointeeLoc () << " )" ;
40
- }
41
- // FIXME: support remaining cases.
42
- default :
43
- return OS << debugString (Val.getKind ());
37
+ case Value::Kind::Integer:
38
+ return OS << " Integer(@" << &Val << " )" ;
39
+ case Value::Kind::Pointer:
40
+ return OS << " Pointer(" << &cast<PointerValue>(Val).getPointeeLoc () << " )" ;
41
+ case Value::Kind::Record:
42
+ return OS << " Record(" << &cast<RecordValue>(Val).getLoc () << " )" ;
43
+ case Value::Kind::TopBool:
44
+ return OS << " TopBool(" << cast<TopBoolValue>(Val).getAtom () << " )" ;
45
+ case Value::Kind::AtomicBool:
46
+ return OS << " AtomicBool(" << cast<AtomicBoolValue>(Val).getAtom () << " )" ;
47
+ case Value::Kind::FormulaBool:
48
+ return OS << " FormulaBool(" << cast<FormulaBoolValue>(Val).formula () << " )" ;
44
49
}
45
50
}
46
51
You can’t perform that action at this time.
0 commit comments