Displaying 3 results from an estimated 3 matches for "getcontextdescriptor".
2013 Nov 15
1
[LLVMdev] DebugInfo: LTO Metadata Size reduction by removing some cycles
...c/attachment.html>
-------------- next part --------------
diff --git lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGDebugInfo.cpp
index 9b131fd..c75fd05 100644
--- lib/CodeGen/CGDebugInfo.cpp
+++ lib/CodeGen/CGDebugInfo.cpp
@@ -138,7 +138,7 @@ void CGDebugInfo::setLocation(SourceLocation Loc) {
/// getContextDescriptor - Get context info for the decl.
llvm::DIScope CGDebugInfo::getContextDescriptor(const Decl *Context) {
if (!Context)
- return TheCU;
+ return llvm::DIScope();
llvm::DenseMap<const Decl *, llvm::WeakVH>::iterator
I = RegionMap.find(Context);
@@ -155,7 +155,7 @@ llvm::DISco...
2015 Aug 18
3
[RFC PATCH 1/2] [clang]: Add AuxAttr support
....createEnumerator(StringRef(key),
+ p_attr.second));
+ }
+
+ llvm::DINodeArray EltArray = DBuilder.getOrCreateArray(Enumerators);
+
+ llvm::DIFile *file = getOrCreateFile(SourceLocation());
+
+ DBuilder.createEnumerationType(
+ type == nullptr ? file : getContextDescriptor(type->getAsTagDecl()),
+ ".llvm.aux.attr", file, 0, 0, 0,
+ EltArray, nullptr, SmallString<256>());
+ }
+ }
+
DBuilder.finalize();
}
@@ -3374,3 +3399,9 @@ void CGDebugInfo::EmitExplicitCastType(QualType Ty) {
// Don't ignore in case of explicit cast w...
2014 Jul 09
4
[LLVMdev] Issues with clang-llvm debug info validity
On Fri, Jun 27, 2014 at 2:19 PM, David Blaikie <dblaikie at gmail.com> wrote:
> On Fri, Jun 27, 2014 at 2:15 PM, Adrian Prantl <aprantl at apple.com> wrote:
>>
>>> On Jun 27, 2014, at 1:58 PM, David Blaikie <dblaikie at gmail.com> wrote:
>>>
>>> On Fri, Jun 27, 2014 at 1:49 PM, Adrian Prantl <aprantl at apple.com> wrote:
>>>>