Removed unused function mistakenly left in, triggering -Werror.
authorZachary Turner <zturner@google.com>
Sun, 8 Feb 2015 00:41:31 +0000 (00:41 +0000)
committerZachary Turner <zturner@google.com>
Sun, 8 Feb 2015 00:41:31 +0000 (00:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228517 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/PDB/PDBSymbolExe.cpp

index cf7dc804aaa661fb2ee9a2dd59429b724ac04db4..033c552fafcabad7f403c74cb92835a8e6647d2b 100644 (file)
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/raw_ostream.h"
 
-#if defined(_WIN32)
-#include <windows.h>
-#endif
-
 using namespace llvm;
 
-namespace {
-std::string GuidToString(PDB_UniqueId *Id) {
-#if defined(_WIN32)
-  GUID *Guid = reinterpret_cast<GUID *>(Id);
-  OLECHAR GuidBuf[40];
-  int Result = StringFromGUID2(*Guid, GuidBuf, 39);
-  const char *InputBytes = reinterpret_cast<const char *>(GuidBuf);
-  std::string ResultString;
-  convertUTF16ToUTF8String(ArrayRef<char>(InputBytes, Result * 2),
-                           ResultString);
-  return ResultString;
-#else
-  return std::string();
-#endif
-}
-}
-
 PDBSymbolExe::PDBSymbolExe(std::unique_ptr<IPDBRawSymbol> Symbol)
     : PDBSymbol(std::move(Symbol)) {}