retain/release checker: Indicate whether a tracked object is a Core Foundation or Objective-C object.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63186 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index bd11c3a..bd5e3b4 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/lib/Analysis/CFRefCount.cpp
@@ -2348,7 +2348,13 @@
       os << "Method";
     }
     
-    os << " returns an object with a ";
+    if (CurrV.getObjKind() == RetEffect::CF) {
+      os << " returns a Core Foundation object with a ";
+    }
+    else {
+      assert (CurrV.getObjKind() == RetEffect::ObjC);
+      os << " returns an Objective-C object with a ";
+    }
     
     if (CurrV.isOwned())
         os << "+1 retain count (owning reference).";