mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Update function name and add some helpful comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198979 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
050d29c5a7
commit
708166f4d2
@ -168,8 +168,9 @@ DIType DbgVariable::getType() const {
|
||||
|
||||
} // end llvm namespace
|
||||
|
||||
/// Return Dwarf Version by checking module flags.
|
||||
static unsigned getDwarfVersionFromModule(const Module *M) {
|
||||
/// Return Dwarf Version by checking module flags and returning
|
||||
/// the default version otherwise.
|
||||
static unsigned getDwarfVersion(const Module *M) {
|
||||
Value *Val = M->getModuleFlag("Dwarf Version");
|
||||
if (!Val)
|
||||
return dwarf::DWARF_VERSION;
|
||||
@ -211,7 +212,7 @@ DwarfDebug::DwarfDebug(AsmPrinter *A, Module *M)
|
||||
|
||||
DwarfVersion = DwarfVersionNumber
|
||||
? DwarfVersionNumber
|
||||
: getDwarfVersionFromModule(MMI->getModule());
|
||||
: getDwarfVersion(MMI->getModule());
|
||||
|
||||
{
|
||||
NamedRegionTimer T(DbgTimerName, DWARFGroupName, TimePassesIsEnabled);
|
||||
|
Loading…
x
Reference in New Issue
Block a user