mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
Add a flag to DwarfDebug to allow it to communicate whether or not
we're using the darwin old gdb compat mode for emitting dwarf. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162486 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
91f3a6cfd9
commit
c1610fa3c4
@ -145,6 +145,8 @@ DwarfDebug::DwarfDebug(AsmPrinter *A, Module *M)
|
||||
DwarfAccelTables = true;
|
||||
DarwinGDBCompat = true;
|
||||
}
|
||||
|
||||
isDarwinGDBCompat = DarwinGDBCompat;
|
||||
|
||||
{
|
||||
NamedRegionTimer T(DbgTimerName, DWARFGroupName, TimePassesIsEnabled);
|
||||
|
@ -307,6 +307,9 @@ class DwarfDebug {
|
||||
// table for the same directory as DW_at_comp_dir.
|
||||
StringRef CompilationDir;
|
||||
|
||||
// A holder for the DarwinGDBCompat flag so that the compile unit can use it.
|
||||
bool isDarwinGDBCompat;
|
||||
|
||||
private:
|
||||
|
||||
/// assignAbbrevNumber - Define a unique number for the abbreviation.
|
||||
@ -520,6 +523,10 @@ public:
|
||||
/// getStringPoolEntry - returns an entry into the string pool with the given
|
||||
/// string text.
|
||||
MCSymbol *getStringPoolEntry(StringRef Str);
|
||||
|
||||
/// useDarwinGDBCompat - returns whether or not to limit some of our debug
|
||||
/// output to the limitations of darwin gdb.
|
||||
bool useDarwinGDBCompat() { return isDarwinGDBCompat; }
|
||||
};
|
||||
} // End of namespace llvm
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user