aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-12-06 07:55:19 +0000
committerBill Wendling <isanbard@gmail.com>2012-12-06 07:55:19 +0000
commit6afe478e005bf9f112b32b7ec25879475adc1915 (patch)
tree0422fc730ed3e044cc94ebff4ebce637ddbfdb2f /lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
parent222c2fd60d0cbe676f3f316a4d62a75762a83c40 (diff)
downloadexternal_llvm-6afe478e005bf9f112b32b7ec25879475adc1915.zip
external_llvm-6afe478e005bf9f112b32b7ec25879475adc1915.tar.gz
external_llvm-6afe478e005bf9f112b32b7ec25879475adc1915.tar.bz2
s/getLowerBoundDefault/getDefaultLowerBound/ for consistency. Also put the more natural check first in the if-then statement.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169486 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfCompileUnit.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
index 340e4709..bd63ff5 100644
--- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
+++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
@@ -79,7 +79,9 @@ class CompileUnit {
/// corresponds to the MDNode mapped with the subprogram DIE.
DenseMap<DIE *, const MDNode *> ContainingTypeMap;
- int64_t getLowerBoundDefault() const;
+ /// getLowerBoundDefault - Return the default lower bound for an array. If the
+ /// DWARF version doesn't handle the language, return -1.
+ int64_t getDefaultLowerBound() const;
public:
CompileUnit(unsigned UID, unsigned L, DIE *D, AsmPrinter *A, DwarfDebug *DW);