mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 21:38:19 +00:00
Use less verbose code and update comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188711 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -205,36 +205,29 @@ DwarfDebug::DwarfDebug(AsmPrinter *A, Module *M)
|
|||||||
FunctionBeginSym = FunctionEndSym = 0;
|
FunctionBeginSym = FunctionEndSym = 0;
|
||||||
|
|
||||||
// Turn on accelerator tables and older gdb compatibility
|
// Turn on accelerator tables and older gdb compatibility
|
||||||
// for Darwin.
|
// for Darwin by default, pubnames by default for non-Darwin,
|
||||||
|
// and handle split dwarf.
|
||||||
bool IsDarwin = Triple(A->getTargetTriple()).isOSDarwin();
|
bool IsDarwin = Triple(A->getTargetTriple()).isOSDarwin();
|
||||||
if (DarwinGDBCompat == Default) {
|
|
||||||
if (IsDarwin)
|
|
||||||
IsDarwinGDBCompat = true;
|
|
||||||
else
|
|
||||||
IsDarwinGDBCompat = false;
|
|
||||||
} else
|
|
||||||
IsDarwinGDBCompat = DarwinGDBCompat == Enable ? true : false;
|
|
||||||
|
|
||||||
if (DwarfAccelTables == Default) {
|
if (DarwinGDBCompat == Default)
|
||||||
if (IsDarwin)
|
IsDarwinGDBCompat = IsDarwin;
|
||||||
HasDwarfAccelTables = true;
|
|
||||||
else
|
else
|
||||||
HasDwarfAccelTables = false;
|
IsDarwinGDBCompat = DarwinGDBCompat == Enable;
|
||||||
} else
|
|
||||||
HasDwarfAccelTables = DwarfAccelTables == Enable ? true : false;
|
if (DwarfAccelTables == Default)
|
||||||
|
HasDwarfAccelTables = IsDarwin;
|
||||||
|
else
|
||||||
|
HasDwarfAccelTables = DwarfAccelTables = Enable;
|
||||||
|
|
||||||
if (SplitDwarf == Default)
|
if (SplitDwarf == Default)
|
||||||
HasSplitDwarf = false;
|
HasSplitDwarf = false;
|
||||||
else
|
else
|
||||||
HasSplitDwarf = SplitDwarf == Enable ? true : false;
|
HasSplitDwarf = SplitDwarf == Enable;
|
||||||
|
|
||||||
if (DwarfPubNames == Default) {
|
if (DwarfPubNames == Default)
|
||||||
if (IsDarwin)
|
HasDwarfPubNames = !IsDarwin;
|
||||||
HasDwarfPubNames = false;
|
|
||||||
else
|
else
|
||||||
HasDwarfPubNames = true;
|
HasDwarfPubNames = DwarfPubNames == Enable;
|
||||||
} else
|
|
||||||
HasDwarfPubNames = DwarfPubNames == Enable ? true : false;
|
|
||||||
|
|
||||||
DwarfVersion = getDwarfVersionFromModule(MMI->getModule());
|
DwarfVersion = getDwarfVersionFromModule(MMI->getModule());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user