summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit20caafbfd629dbe6f7231a55202beeb407bed5c1 (patch)
tree78966b8b8f5b1b5933d1512ff3678871a29abfd9 /llvm/tools/opt/BreakpointPrinter.cpp
parent5f88ba1d5d8c667d6b7d570ee267ea2a86f4a86a (diff)
downloadbcm5719-llvm-20caafbfd629dbe6f7231a55202beeb407bed5c1.tar.gz
bcm5719-llvm-20caafbfd629dbe6f7231a55202beeb407bed5c1.zip
DebugInfo: Gut DINamespace and DITemplate*Parameter
Continue gutting `DIDescriptor` subclasses, turning them into as-bare-as-possible pointer wrappers. llvm-svn: 234843
Diffstat (limited to 'llvm/tools/opt/BreakpointPrinter.cpp')
-rw-r--r--llvm/tools/opt/BreakpointPrinter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/opt/BreakpointPrinter.cpp b/llvm/tools/opt/BreakpointPrinter.cpp
index eb89b9bca80..846211ba781 100644
--- a/llvm/tools/opt/BreakpointPrinter.cpp
+++ b/llvm/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()) {
OpenPOWER on IntegriCloud