mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Temporary workaround to fix MSVC 2012 build problems
llvm-svn: 228788
This commit is contained in:
parent
f2f6e76b2c
commit
578ec9bef5
@ -18,7 +18,17 @@
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
template <typename ArgType, typename RetType = ArgType>
|
template <typename ArgType>
|
||||||
|
ArgType PrivateGetDIAValue(IDiaSymbol *Symbol,
|
||||||
|
HRESULT (__stdcall IDiaSymbol::*Method)(ArgType *)) {
|
||||||
|
ArgType Value;
|
||||||
|
if (S_OK == (Symbol->*Method)(&Value))
|
||||||
|
return static_cast<ArgType>(Value);
|
||||||
|
|
||||||
|
return ArgType();
|
||||||
|
}
|
||||||
|
|
||||||
|
template <typename ArgType, typename RetType>
|
||||||
RetType PrivateGetDIAValue(IDiaSymbol *Symbol,
|
RetType PrivateGetDIAValue(IDiaSymbol *Symbol,
|
||||||
HRESULT (__stdcall IDiaSymbol::*Method)(ArgType *)) {
|
HRESULT (__stdcall IDiaSymbol::*Method)(ArgType *)) {
|
||||||
ArgType Value;
|
ArgType Value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user