llvm.org GIT mirror llvm / 2c797c6
Removed unused function mistakenly left in, triggering -Werror. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228517 91177308-0d34-0410-b5e6-96231b3b80d8 Zachary Turner 4 years ago
1 changed file(s) with 0 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
1414 #include "llvm/Support/FileSystem.h"
1515 #include "llvm/Support/raw_ostream.h"
1616
17 #if defined(_WIN32)
18 #include
19 #endif
20
2117 using namespace llvm;
22
23 namespace {
24 std::string GuidToString(PDB_UniqueId *Id) {
25 #if defined(_WIN32)
26 GUID *Guid = reinterpret_cast(Id);
27 OLECHAR GuidBuf[40];
28 int Result = StringFromGUID2(*Guid, GuidBuf, 39);
29 const char *InputBytes = reinterpret_cast(GuidBuf);
30 std::string ResultString;
31 convertUTF16ToUTF8String(ArrayRef(InputBytes, Result * 2),
32 ResultString);
33 return ResultString;
34 #else
35 return std::string();
36 #endif
37 }
38 }
3918
4019 PDBSymbolExe::PDBSymbolExe(std::unique_ptr Symbol)
4120 : PDBSymbol(std::move(Symbol)) {}