search for: auxattrs

Displaying 2 results from an estimated 2 matches for "auxattrs".

2018 Feb 23
0
[RFC PATCH 1/2] [clang]: Add AuxAttr support
> On Aug 18, 2015, at 7:53 AM, Wang Nan via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > This patch adds EmitTypeAuxAttribute() function to CGDebugInfo, which > allows other parts of clang issue auxiliary information through an > enumeration type in Dwarf information. That's a rather unusual mechanism. Can you elaborate what the use-case for this would be and why
2015 Aug 18
3
[RFC PATCH 1/2] [clang]: Add AuxAttr support
.../CGDebugInfo.cpp index eaa1e25..99d4230 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -3363,6 +3363,31 @@ void CGDebugInfo::finalize() { RE = RetainedTypes.end(); RI != RE; ++RI) DBuilder.retainType(cast<llvm::DIType>(TypeCache[*RI])); + + if (AuxAttrs.size() > 0) { + for (const auto &p_type : AuxAttrs) { + SmallVector<llvm::Metadata *, 16> Enumerators; + const Type *type = p_type.first; + + for (const auto &p_attr : p_type.second) { + std::string key("." + p_attr.first); + std::replace(k...