summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/NativePDB
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-12-17 14:34:17 +0100
committerRaphael Isemann <teemperor@gmail.com>2019-12-17 15:56:07 +0100
commitb852b3c982d2e8ad3f13c626b3e3655e5b3c399e (patch)
treea250e43225e15ce6f11b9d9f01d869bf92140c36 /lldb/source/Plugins/SymbolFile/NativePDB
parent4becf68c6f17fe143539ceac954b21175914e1c1 (diff)
downloadbcm5719-llvm-b852b3c982d2e8ad3f13c626b3e3655e5b3c399e.tar.gz
bcm5719-llvm-b852b3c982d2e8ad3f13c626b3e3655e5b3c399e.zip
[lldb][NFC] Rename ClangASTImporter::InsertRecordDecl to SetRecordLayout and document it
This function is just setting the layout for the given RecordDecl so the current name is not very descriptive. Also add some documentation for it.
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/NativePDB')
-rw-r--r--lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp b/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp
index 3c494dc8398..7221144407c 100644
--- a/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp
+++ b/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp
@@ -231,6 +231,6 @@ void UdtRecordCompleter::complete() {
ClangASTContext::CompleteTagDeclarationDefinition(m_derived_ct);
if (auto *record_decl = llvm::dyn_cast<clang::CXXRecordDecl>(&m_tag_decl)) {
- m_ast_builder.importer().InsertRecordDecl(record_decl, m_layout);
+ m_ast_builder.importer().SetRecordLayout(record_decl, m_layout);
}
}
OpenPOWER on IntegriCloud