diff --git a/llvm/lib/DebugInfo/PDB/PDBSymbolExe.cpp b/llvm/lib/DebugInfo/PDB/PDBSymbolExe.cpp index cf7dc804aaa6..033c552fafca 100644 --- a/llvm/lib/DebugInfo/PDB/PDBSymbolExe.cpp +++ b/llvm/lib/DebugInfo/PDB/PDBSymbolExe.cpp @@ -15,29 +15,8 @@ #include "llvm/Support/FileSystem.h" #include "llvm/Support/raw_ostream.h" -#if defined(_WIN32) -#include -#endif - using namespace llvm; -namespace { -std::string GuidToString(PDB_UniqueId *Id) { -#if defined(_WIN32) - GUID *Guid = reinterpret_cast(Id); - OLECHAR GuidBuf[40]; - int Result = StringFromGUID2(*Guid, GuidBuf, 39); - const char *InputBytes = reinterpret_cast(GuidBuf); - std::string ResultString; - convertUTF16ToUTF8String(ArrayRef(InputBytes, Result * 2), - ResultString); - return ResultString; -#else - return std::string(); -#endif -} -} - PDBSymbolExe::PDBSymbolExe(std::unique_ptr Symbol) : PDBSymbol(std::move(Symbol)) {}