mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Temporary workaround to fix MSVC 2012 build problems
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228788 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7c5e0c9851
commit
a73810650e
@ -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