summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-07-06 19:12:31 +0000
committerBill Wendling <isanbard@gmail.com>2012-07-06 19:12:31 +0000
commitaa02e36fa89321a7603b560033c7e5328d2be57c (patch)
tree9a60886570aabf7e167a975e0918f8077937bd3b /llvm/lib
parent0021347926a5d19db301c2511532c9c0927f7de3 (diff)
downloadbcm5719-llvm-aa02e36fa89321a7603b560033c7e5328d2be57c.tar.gz
bcm5719-llvm-aa02e36fa89321a7603b560033c7e5328d2be57c.zip
Add a print method to the ObjC property object.
llvm-svn: 159848
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/DebugInfo.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/DebugInfo.cpp b/llvm/lib/VMCore/DebugInfo.cpp
index d7144adcb09..bb700a94817 100644
--- a/llvm/lib/VMCore/DebugInfo.cpp
+++ b/llvm/lib/VMCore/DebugInfo.cpp
@@ -1018,6 +1018,8 @@ void DIDescriptor::print(raw_ostream &OS) const {
DIGlobalVariable(DbgNode).printInternal(OS);
} else if (this->isVariable()) {
DIVariable(DbgNode).printInternal(OS);
+ } else if (this->isObjCProperty()) {
+ DIObjCProperty(DbgNode).printInternal(OS);
}
}
@@ -1121,6 +1123,15 @@ void DIVariable::printInternal(raw_ostream &OS) const {
OS << " [line " << getLineNumber() << ']';
}
+void DIObjCProperty::printInternal(raw_ostream &OS) const {
+ StringRef Name = getObjCPropertyName();
+ if (!Name.empty())
+ OS << " [" << Name << ']';
+
+ OS << " [line " << getLineNumber()
+ << ", properties " << getUnsignedField(6) << ']';
+}
+
static void printDebugLoc(DebugLoc DL, raw_ostream &CommentOS,
const LLVMContext &Ctx) {
if (!DL.isUnknown()) { // Print source line info.
OpenPOWER on IntegriCloud