mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Add a print method to the ObjC property object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159848 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user