diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-09-19 17:27:48 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-09-19 17:27:48 +0000 |
commit | 08b5ff7f5809ece849f1fdcd7e011aa175c31516 (patch) | |
tree | 654b659c653e760ad930ad803f3e49bd84252081 | |
parent | 1bc7315c022b327a496366a78eb31ba446c699bd (diff) | |
download | external_llvm-08b5ff7f5809ece849f1fdcd7e011aa175c31516.zip external_llvm-08b5ff7f5809ece849f1fdcd7e011aa175c31516.tar.gz external_llvm-08b5ff7f5809ece849f1fdcd7e011aa175c31516.tar.bz2 |
Fix a typo and simplify a boolean expression.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191018 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 4f62ab9..7409216 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2337,8 +2337,7 @@ static uint8_t computeIndexValue(CompileUnit *CU, DIE *Die) { // Compute the Attributes for the Die. uint32_t Value = dwarf::GDB_INDEX_SYMBOL_KIND_NONE; - bool External = - Die->findAttribute(dwarf::DW_AT_external) != NULL ? true : false; + bool External = Die->findAttribute(dwarf::DW_AT_external); switch (Die->getTag()) { case dwarf::DW_TAG_class_type: @@ -2371,7 +2370,7 @@ static uint8_t computeIndexValue(CompileUnit *CU, DIE *Die) { break; } // We don't need to add the CU into the bitmask for two reasons: - // a) the pubnames/pubtypes sections are per-cpu, and + // a) the pubnames/pubtypes sections are per-cu, and // b) the linker wouldn't understand it anyhow. // so go ahead and make it 1 byte by shifting it down. return Value >> dwarf::GDB_INDEX_CU_BITSIZE; |