diff options
author | Adrian Prantl <aprantl@apple.com> | 2020-03-17 12:51:58 -0700 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2020-04-01 17:46:02 -0700 |
commit | f4754ea0ed7ddc35042bacbc47d661bfe660f132 (patch) | |
tree | ce17d79b20f6fdc9a84e5c0fe7f01a0131b9c9b8 /clang/lib/Basic/Module.cpp | |
parent | e6a39f00e8d0cd3684df54fb03d288efe2969202 (diff) | |
download | llvm-f4754ea0ed7ddc35042bacbc47d661bfe660f132.zip llvm-f4754ea0ed7ddc35042bacbc47d661bfe660f132.tar.gz llvm-f4754ea0ed7ddc35042bacbc47d661bfe660f132.tar.bz2 |
Remove const qualifier from Modules returned by ExternalASTSource. (NFC)
This API is used by LLDB to attach owning module information to
Declarations deserialized from DWARF.
Differential Revision: https://reviews.llvm.org/D75561
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
-rw-r--r-- | clang/lib/Basic/Module.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/Module.cpp b/clang/lib/Basic/Module.cpp index dd8f111..5fd7d30 100644 --- a/clang/lib/Basic/Module.cpp +++ b/clang/lib/Basic/Module.cpp @@ -659,7 +659,7 @@ void VisibleModuleSet::setVisible(Module *M, SourceLocation Loc, VisitModule({M, nullptr}); } -ASTSourceDescriptor::ASTSourceDescriptor(const Module &M) +ASTSourceDescriptor::ASTSourceDescriptor(Module &M) : Signature(M.Signature), ClangModule(&M) { if (M.Directory) Path = M.Directory->getName(); |