Displaying 4 results from an estimated 4 matches for "getorcreatefile".
2018 Nov 29
2
DIFile filenames containing directories
Can't say I know much about -fdebug-prefix-map, but...
On Thu, Nov 29, 2018 at 1:07 PM Adrian Prantl <aprantl at apple.com> wrote:
> Thanks for the feedback! Closely-related follow-up question: Is *this* a
> bug?
>
> llvm/tools/clang/test/CodeGen/debug-prefix-map.c:33:27:
> // CHECK-COMPILATION-DIR: !DIFile(filename:
> "/var/empty{{[/\\]}}Inputs/stdio.h",
2015 Aug 18
3
[RFC PATCH 1/2] [clang]: Add AuxAttr support
...first);
+ std::replace(key.begin(), key.end(), ' ', '.');
+
+ Enumerators.push_back(DBuilder.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();
}...
2016 Apr 01
0
[cfe-dev] RFC: Up front type information generation in clang and llvm
...+
if (auto *T = getTypeOrNull(Ty))
return T;
@@ -2603,7 +2599,7 @@ llvm::DISubprogram *CGDebugInfo::getFunctionDeclaration(const Decl *D) {
if (const CXXMethodDecl *MD =
dyn_cast<CXXMethodDecl>(FD->getCanonicalDecl())) {
return CreateCXXMemberFunction(MD, getOrCreateFile(MD->getLocation()),
- cast<llvm::DICompositeType>(S));
+ cast<llvm::DIType>(S));
}
}
if (MI != SPCache.end()) {
@@ -3328,7 +3324,7 @@ CGDebugInfo::getOrCreateStaticDataMemberDeclarationOrNull(const Var...
2016 Mar 30
5
[cfe-dev] RFC: Up front type information generation in clang and llvm
On Tue, Mar 29, 2016 at 11:20 PM Robinson, Paul <
Paul_Robinson at playstation.sony.com> wrote:
> Skipping a serialization and doing something clever about LTO uniquing
> sounds awesome. I'm guessing you achieve this by extracting types out of
> DI metadata and packaging them as lumps-o-DWARF that the back-end can then
> paste together? Reading between the lines a bit