summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/DIA
diff options
context:
space:
mode:
authorAaron Smith <aaron.smith@microsoft.com>2018-04-10 15:25:04 +0000
committerAaron Smith <aaron.smith@microsoft.com>2018-04-10 15:25:04 +0000
commitc0a5c01aebc4c7aa3f6abdd8c3e0a0f35db41ff4 (patch)
treea23db1b46697cec5c090a7fe3c8b16c2ec8fc5b6 /llvm/lib/DebugInfo/PDB/DIA
parentb8800b025b17040fa6acbd5c9f2b1953f58ed1c1 (diff)
downloadbcm5719-llvm-c0a5c01aebc4c7aa3f6abdd8c3e0a0f35db41ff4.tar.gz
bcm5719-llvm-c0a5c01aebc4c7aa3f6abdd8c3e0a0f35db41ff4.zip
[PDB] Remove dead code and run clang format; NFC
llvm-svn: 329712
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/DIA')
-rw-r--r--llvm/lib/DebugInfo/PDB/DIA/DIASectionContrib.cpp23
1 files changed, 7 insertions, 16 deletions
diff --git a/llvm/lib/DebugInfo/PDB/DIA/DIASectionContrib.cpp b/llvm/lib/DebugInfo/PDB/DIA/DIASectionContrib.cpp
index 6f395a99e58..b7dc49f53e2 100644
--- a/llvm/lib/DebugInfo/PDB/DIA/DIASectionContrib.cpp
+++ b/llvm/lib/DebugInfo/PDB/DIA/DIASectionContrib.cpp
@@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/DebugInfo/PDB/DIA/DIARawSymbol.h"
#include "llvm/DebugInfo/PDB/DIA/DIASectionContrib.h"
+#include "llvm/DebugInfo/PDB/DIA/DIARawSymbol.h"
#include "llvm/DebugInfo/PDB/DIA/DIASession.h"
#include "llvm/DebugInfo/PDB/PDBSymbolCompiland.h"
@@ -29,9 +29,9 @@ std::unique_ptr<PDBSymbolCompiland> DIASectionContrib::getCompiland() const {
}
template <typename ArgType>
-ArgType PrivateGetDIAValue(
- IDiaSectionContrib *Section,
- HRESULT(__stdcall IDiaSectionContrib::*Method)(ArgType *)) {
+ArgType
+PrivateGetDIAValue(IDiaSectionContrib *Section,
+ HRESULT (__stdcall IDiaSectionContrib::*Method)(ArgType *)) {
ArgType Value;
if (S_OK == (Section->*Method)(&Value))
return static_cast<ArgType>(Value);
@@ -39,17 +39,6 @@ ArgType PrivateGetDIAValue(
return ArgType();
}
-template <typename ArgType, typename RetType>
-RetType PrivateGetDIAValue(
- IDiaSectionContrib *Section,
- HRESULT(__stdcall IDiaSectionContrib::*Method)(ArgType *)) {
- ArgType Value;
- if (S_OK == (Section->*Method)(&Value))
- return static_cast<RetType>(Value);
-
- return RetType();
-}
-
uint32_t DIASectionContrib::getAddressSection() const {
return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_addressSection);
}
@@ -66,6 +55,7 @@ uint32_t DIASectionContrib::getRelativeVirtualAddress() const {
return PrivateGetDIAValue(Section,
&IDiaSectionContrib::get_relativeVirtualAddress);
}
+
uint32_t DIASectionContrib::getLength() const {
return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_length);
}
@@ -87,7 +77,8 @@ bool DIASectionContrib::hasInitializedData() const {
}
bool DIASectionContrib::hasUninitializedData() const {
- return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_uninitializedData);
+ return PrivateGetDIAValue(Section,
+ &IDiaSectionContrib::get_uninitializedData);
}
bool DIASectionContrib::isRemoved() const {
OpenPOWER on IntegriCloud