[PATCH] D75560: Make Decl::setFromASTFile() public. (NFC)
Adrian Prantl via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 3 13:14:11 PST 2020
aprantl created this revision.
aprantl added reviewers: teemperor, rsmith, shafik.
This API is going to be used by LLDB to recreate owning module information for Decls deserializwed from DWARF.
https://reviews.llvm.org/D75560
Files:
clang/include/clang/AST/DeclBase.h
Index: clang/include/clang/AST/DeclBase.h
===================================================================
--- clang/include/clang/AST/DeclBase.h
+++ clang/include/clang/AST/DeclBase.h
@@ -626,13 +626,15 @@
setModuleOwnershipKind(ModuleOwnershipKind::ModulePrivate);
}
+public:
+ void setFromASTFile() { FromASTFile = true; }
+
/// Set the owning module ID.
void setOwningModuleID(unsigned ID) {
assert(isFromASTFile() && "Only works on a deserialized declaration");
*((unsigned*)this - 2) = ID;
}
-public:
/// Determine the availability of the given declaration.
///
/// This routine will determine the most restrictive availability of
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75560.247997.patch
Type: text/x-patch
Size: 681 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200303/67a4fa20/attachment-0001.bin>
More information about the cfe-commits
mailing list