summaryrefslogtreecommitdiff
path: root/tools/opt/BreakpointPrinter.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-14 03:01:27 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-14 03:01:27 +0000
commit41ed49389bc67e1855aeb6a026acb4992424a245 (patch)
tree00cdf33dd1c8104d822c7f6d39dd17d84051689d /tools/opt/BreakpointPrinter.cpp
parent32cb99437ef2921bcad7e62de0c3438d594997e6 (diff)
DebugInfo: Gut DINamespace and DITemplate*Parameter
Continue gutting `DIDescriptor` subclasses, turning them into as-bare-as-possible pointer wrappers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234843 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/BreakpointPrinter.cpp')
-rw-r--r--tools/opt/BreakpointPrinter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/opt/BreakpointPrinter.cpp b/tools/opt/BreakpointPrinter.cpp
index eb89b9bca80..846211ba781 100644
--- a/tools/opt/BreakpointPrinter.cpp
+++ b/tools/opt/BreakpointPrinter.cpp
@@ -30,10 +30,10 @@ struct BreakpointPrinter : public ModulePass {
BreakpointPrinter(raw_ostream &out) : ModulePass(ID), Out(out) {}
void getContextName(DIDescriptor Context, std::string &N) {
- if (DINameSpace NS = dyn_cast<MDNamespace>(Context)) {
- if (!NS.getName().empty()) {
- getContextName(NS.getContext(), N);
- N = N + NS.getName().str() + "::";
+ 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)) {
if (!TY.getName().empty()) {