Lines Matching refs:NS
364 void DwarfUnit::addSourceLine(DIE &Die, const DINamespace *NS) {
365 addSourceLine(Die, NS->getLine(), NS->getFilename(), NS->getDirectory());
666 if (auto *NS = dyn_cast<DINamespace>(Context))
667 return getOrCreateNameSpace(NS);
1052 DIE *DwarfUnit::getOrCreateNameSpace(const DINamespace *NS) {
1055 DIE *ContextDIE = getOrCreateContextDIE(NS->getScope());
1057 if (DIE *NDie = getDIE(NS))
1059 DIE &NDie = createAndAddDIE(dwarf::DW_TAG_namespace, *ContextDIE, NS);
1061 StringRef Name = NS->getName();
1063 addString(NDie, dwarf::DW_AT_name, NS->getName());
1067 addGlobalName(Name, NDie, NS->getScope());
1068 addSourceLine(NDie, NS);