mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Revert r198979 - accidental commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198981 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fae2ba0303
commit
babad8b46e
@ -168,9 +168,8 @@ DIType DbgVariable::getType() const {
|
||||
|
||||
} // end llvm namespace
|
||||
|
||||
/// Return Dwarf Version by checking module flags and returning
|
||||
/// the default version otherwise.
|
||||
static unsigned getDwarfVersion(const Module *M) {
|
||||
/// Return Dwarf Version by checking module flags.
|
||||
static unsigned getDwarfVersionFromModule(const Module *M) {
|
||||
Value *Val = M->getModuleFlag("Dwarf Version");
|
||||
if (!Val)
|
||||
return dwarf::DWARF_VERSION;
|
||||
@ -210,8 +209,9 @@ DwarfDebug::DwarfDebug(AsmPrinter *A, Module *M)
|
||||
else
|
||||
HasDwarfPubSections = DwarfPubSections == Enable;
|
||||
|
||||
DwarfVersion = DwarfVersionNumber ? DwarfVersionNumber
|
||||
: getDwarfVersion(MMI->getModule());
|
||||
DwarfVersion = DwarfVersionNumber
|
||||
? DwarfVersionNumber
|
||||
: getDwarfVersionFromModule(MMI->getModule());
|
||||
|
||||
{
|
||||
NamedRegionTimer T(DbgTimerName, DWARFGroupName, TimePassesIsEnabled);
|
||||
|
Loading…
Reference in New Issue
Block a user