mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-12 05:40:30 +00:00
DwarfCompileUnit: Simplify getLanguage() calls to use existing member function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194892 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a53bf06f7a
commit
aedaa723c2
@ -57,7 +57,7 @@ DIEEntry *CompileUnit::createDIEEntry(DIE *Entry) {
|
||||
/// 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 &Buffer, DICompositeType CTy) {
|
||||
}
|
||||
// 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::getOrCreateSubprogramDIE(DISubprogram SP) {
|
||||
|
||||
// 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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user