summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-18 00:35:36 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-18 00:35:36 +0000
commit7c60f20e497c10e506a44317aa98ba23f8b04b54 (patch)
treee7afd3feb1607962af442912546b7ae6935c5621 /llvm/tools
parent9a5b990f27455374007c2288f12eeef945fb84f7 (diff)
downloadbcm5719-llvm-7c60f20e497c10e506a44317aa98ba23f8b04b54.tar.gz
bcm5719-llvm-7c60f20e497c10e506a44317aa98ba23f8b04b54.zip
DebugInfo: Delete DIDescriptor (but not its subclasses)
Delete `DIDescriptor` and update the remaining users. I'll follow-up by deleting subclasses in manageable groups (top-down). llvm-svn: 235248
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/opt/BreakpointPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/opt/BreakpointPrinter.cpp b/llvm/tools/opt/BreakpointPrinter.cpp
index 8f390a10e3b..26c1b551127 100644
--- a/llvm/tools/opt/BreakpointPrinter.cpp
+++ b/llvm/tools/opt/BreakpointPrinter.cpp
@@ -29,13 +29,13 @@ struct BreakpointPrinter : public ModulePass {
BreakpointPrinter(raw_ostream &out) : ModulePass(ID), Out(out) {}
- void getContextName(DIDescriptor Context, std::string &N) {
+ void getContextName(const MDScope *Context, std::string &N) {
if (auto *NS = dyn_cast<MDNamespace>(Context)) {
if (!NS->getName().empty()) {
getContextName(NS->getScope(), N);
N = N + NS->getName().str() + "::";
}
- } else if (DIType TY = dyn_cast<MDType>(Context)) {
+ } else if (auto *TY = dyn_cast<MDType>(Context)) {
if (!TY->getName().empty()) {
getContextName(TY->getScope().resolve(TypeIdentifierMap), N);
N = N + TY->getName().str() + "::";
OpenPOWER on IntegriCloud