summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/ELF
diff options
context:
space:
mode:
authorHafiz Abid Qadeer <hafiz_abid@mentor.com>2017-01-20 10:24:03 +0000
committerHafiz Abid Qadeer <hafiz_abid@mentor.com>2017-01-20 10:24:03 +0000
commitb1554311d3c38d10d064ccf11c6486a87a11ccce (patch)
treec1b21bef9993e9aa34d4afa2d4228b5292b69936 /lldb/source/Plugins/ObjectFile/ELF
parent2737989245b7ea1c666def88cf3e02ad62c0e808 (diff)
downloadbcm5719-llvm-b1554311d3c38d10d064ccf11c6486a87a11ccce.tar.gz
bcm5719-llvm-b1554311d3c38d10d064ccf11c6486a87a11ccce.zip
Fix more unused variable warnings when asserts are disabled.
llvm-svn: 292598
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF')
-rw-r--r--lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
index eb983154618..fa79b24c481 100644
--- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
@@ -632,6 +632,7 @@ size_t ObjectFileELF::GetModuleSpecifications(
// SetArchitecture should have set the vendor to unknown
vendor = spec.GetArchitecture().GetTriple().getVendor();
assert(vendor == llvm::Triple::UnknownVendor);
+ UNUSED_IF_ASSERT_DISABLED(vendor);
//
// Validate it is ok to remove GetOsFromOSABI
@@ -1524,6 +1525,7 @@ size_t ObjectFileELF::GetSectionHeaderInfo(SectionHeaderColl &section_headers,
GetOsFromOSABI(header.e_ident[EI_OSABI], ostype);
spec_ostype = arch_spec.GetTriple().getOS();
assert(spec_ostype == ostype);
+ UNUSED_IF_ASSERT_DISABLED(spec_ostype);
}
if (arch_spec.GetMachine() == llvm::Triple::mips ||
OpenPOWER on IntegriCloud