summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-16 01:01:28 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-16 01:01:28 +0000
commitb105564015292c933c6e0dab6bb027ed9c1580a5 (patch)
tree9e6debd9480cf75e2b8f818ed35f501e272c942d /llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp
parent4caa7f2a9c9a54ad37960218c49fc853df01434c (diff)
downloadbcm5719-llvm-b105564015292c933c6e0dab6bb027ed9c1580a5.tar.gz
bcm5719-llvm-b105564015292c933c6e0dab6bb027ed9c1580a5.zip
DebugInfo: Gut DIType and subclasses
Continuing PR23080, gut `DIType` and its various subclasses, leaving behind thin wrappers around the pointer types in the new debug info hierarchy. llvm-svn: 235064
Diffstat (limited to 'llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp')
-rw-r--r--llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp b/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp
index c8e5c37ccfd..f2a11cb461f 100644
--- a/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp
+++ b/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp
@@ -98,27 +98,27 @@ void ModuleDebugInfoPrinter::print(raw_ostream &O, const Module *M) const {
O << '\n';
}
- for (DIType T : Finder.types()) {
+ for (const MDType *T : Finder.types()) {
O << "Type:";
- if (!T.getName().empty())
- O << ' ' << T.getName();
- printFile(O, T.getFilename(), T.getDirectory(), T.getLineNumber());
- if (DIBasicType BT = dyn_cast<MDBasicType>(T)) {
+ if (!T->getName().empty())
+ O << ' ' << T->getName();
+ printFile(O, T->getFilename(), T->getDirectory(), T->getLine());
+ if (auto *BT = dyn_cast<MDBasicType>(T)) {
O << " ";
if (const char *Encoding =
- dwarf::AttributeEncodingString(BT.getEncoding()))
+ dwarf::AttributeEncodingString(BT->getEncoding()))
O << Encoding;
else
- O << "unknown-encoding(" << BT.getEncoding() << ')';
+ O << "unknown-encoding(" << BT->getEncoding() << ')';
} else {
O << ' ';
- if (const char *Tag = dwarf::TagString(T.getTag()))
+ if (const char *Tag = dwarf::TagString(T->getTag()))
O << Tag;
else
- O << "unknown-tag(" << T.getTag() << ")";
+ O << "unknown-tag(" << T->getTag() << ")";
}
- if (DICompositeType CT = dyn_cast<MDCompositeType>(T)) {
- if (auto *S = CT.getIdentifier())
+ if (auto *CT = dyn_cast<MDCompositeType>(T)) {
+ if (auto *S = CT->getRawIdentifier())
O << " (identifier: '" << S->getString() << "')";
}
O << '\n';
OpenPOWER on IntegriCloud