mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Removed unused function mistakenly left in, triggering -Werror.
llvm-svn: 228517
This commit is contained in:
parent
ca172bdb48
commit
6fb87b6e2d
@ -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)) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user