mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-02 08:26:39 +00:00
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
This commit is contained in:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user