[llvm] r194892 - DwarfCompileUnit: Simplify getLanguage() calls to use existing member function
David Blaikie
dblaikie at gmail.com
Fri Nov 15 15:50:53 PST 2013
Author: dblaikie
Date: Fri Nov 15 17:50:53 2013
New Revision: 194892
URL: http://llvm.org/viewvc/llvm-project?rev=194892&view=rev
Log:
DwarfCompileUnit: Simplify getLanguage() calls to use existing member function
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp?rev=194892&r1=194891&r2=194892&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp Fri Nov 15 17:50:53 2013
@@ -57,7 +57,7 @@ DIEEntry *CompileUnit::createDIEEntry(DI
/// getDefaultLowerBound - Return the default lower bound for an array. If the
/// DWARF version doesn't handle the language, return -1.
int64_t CompileUnit::getDefaultLowerBound() const {
- switch (DICompileUnit(Node).getLanguage()) {
+ switch (getLanguage()) {
default:
break;
@@ -1165,7 +1165,7 @@ void CompileUnit::constructTypeDIE(DIE &
}
// Add prototype flag if we're dealing with a C language and the
// function has been prototyped.
- uint16_t Language = DICompileUnit(Node).getLanguage();
+ uint16_t Language = getLanguage();
if (isPrototyped &&
(Language == dwarf::DW_LANG_C89 || Language == dwarf::DW_LANG_C99 ||
Language == dwarf::DW_LANG_ObjC))
@@ -1423,7 +1423,7 @@ DIE *CompileUnit::getOrCreateSubprogramD
// Add the prototype if we have a prototype and we have a C like
// language.
- uint16_t Language = DICompileUnit(Node).getLanguage();
+ uint16_t Language = getLanguage();
if (SP.isPrototyped() &&
(Language == dwarf::DW_LANG_C89 || Language == dwarf::DW_LANG_C99 ||
Language == dwarf::DW_LANG_ObjC))
More information about the llvm-commits
mailing list