mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-06 12:04:52 +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;
|
||||
|
||||
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,
|
||||
HRESULT (__stdcall IDiaSymbol::*Method)(ArgType *)) {
|
||||
ArgType Value;
|
||||
|
Loading…
Reference in New Issue
Block a user