1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[NativePDB] Get LLDB types from PDB function types.

This adds basic support for getting function signature types
into LLDB's type system, including into clang's AST.  There are
a few edge cases which are not correctly handled, mostly dealing
with nested classes, but this isn't specific to functions and
apply equally to variable types.  Note that no attempt has been
made yet to deal with member function types, which will happen
in subsequent patches.

Differential Revision: https://reviews.llvm.org/D53951

llvm-svn: 345848
This commit is contained in:
Zachary Turner 2018-11-01 16:37:29 +00:00
parent 775a75a648
commit 2ba67e154d

View File

@ -47,7 +47,7 @@ public:
return Error::success();
}
template <typename T> static Expected<T> deserializeAs(CVSymbol Symbol) {
T Record(Symbol.kind());
T Record(static_cast<SymbolRecordKind>(Symbol.kind()));
if (auto EC = deserializeAs<T>(Symbol, Record))
return std::move(EC);
return Record;