1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-03-19 04:31:17 +00:00

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
This commit is contained in:
Zachary Turner 2015-02-08 00:41:31 +00:00
parent e642985be9
commit 2c797c6dc4

@ -15,29 +15,8 @@
#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)) {}