diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-12-06 07:55:19 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-12-06 07:55:19 +0000 |
commit | 3495f9b6dd452f030d8fd549554e90f55338f972 (patch) | |
tree | fd9e67ef1515a214edea99d33a6a5200e16ccd4f /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | |
parent | f9528843d2df5125e106e3c796f33f46df236f5e (diff) | |
download | bcm5719-llvm-3495f9b6dd452f030d8fd549554e90f55338f972.tar.gz bcm5719-llvm-3495f9b6dd452f030d8fd549554e90f55338f972.zip |
s/getLowerBoundDefault/getDefaultLowerBound/ for consistency. Also put the more natural check first in the if-then statement.
llvm-svn: 169486
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 255ae1ec500..f0ea8893ca4 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -51,9 +51,9 @@ DIEEntry *CompileUnit::createDIEEntry(DIE *Entry) { return Value; } -/// getLowerBoundDefault - Return the default lower bound for an array. If the +/// getDefaultLowerBound - Return the default lower bound for an array. If the /// DWARF version doesn't handle the language, return -1. -int64_t CompileUnit::getLowerBoundDefault() const { +int64_t CompileUnit::getDefaultLowerBound() const { switch (Language) { default: break; @@ -1302,10 +1302,10 @@ void CompileUnit::constructSubrangeDIE(DIE &Buffer, DISubrange SR, // Count == 0, then the array has zero elements in which case we do not emit // an upper bound. int64_t LowerBound = SR.getLo(); - int64_t DefaultLowerBound = getLowerBoundDefault(); + int64_t DefaultLowerBound = getDefaultLowerBound(); int64_t Count = SR.getCount(); - if (LowerBound != DefaultLowerBound || DefaultLowerBound == -1) + if (DefaultLowerBound == -1 || LowerBound != DefaultLowerBound) addUInt(DW_Subrange, dwarf::DW_AT_lower_bound, 0, LowerBound); if (Count != -1 && Count != 0) |