9#ifndef LLVM_DEBUGINFO_PDB_DIA_DIAUTILS_H
10#define LLVM_DEBUGINFO_PDB_DIA_DIAUTILS_H
15template <
typename Obj>
17 HRESULT (__stdcall Obj::*Func)(BSTR *)) {
19 HRESULT Result = (Object.*Func)(&Str16);
std::string invokeBstrMethod(Obj &Object, HRESULT(__stdcall Obj::*Func)(BSTR *))
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
bool convertUTF16ToUTF8String(ArrayRef< char > SrcBytes, std::string &Out)
Converts a stream of raw bytes assumed to be UTF16 into a UTF8 std::string.