summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-08-23 22:36:36 +0000
committerEric Christopher <echristo@apple.com>2012-08-23 22:36:36 +0000
commit4977f214d782f1806264bb76d5b3976ebdcd65f5 (patch)
treee3cce2bfd37c76442fb4534474c0eede960beee3 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
parent70304276237d350e68d145958b2c5c8244939e28 (diff)
downloadbcm5719-llvm-4977f214d782f1806264bb76d5b3976ebdcd65f5.tar.gz
bcm5719-llvm-4977f214d782f1806264bb76d5b3976ebdcd65f5.zip
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. llvm-svn: 162486
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
index d1d65126550..78c871688e6 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -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
OpenPOWER on IntegriCloud