summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2012-11-12 22:22:20 +0000
committerEric Christopher <echristo@gmail.com>2012-11-12 22:22:20 +0000
commit29424311754406f71d32cd2802d7c7687cfb4ad2 (patch)
treecd04d65260d0000cc75b4974ebbc3d00bebd4112 /llvm/lib/CodeGen
parent33c20f45f1f1fc540f30566c61a149c37a0494a3 (diff)
downloadbcm5719-llvm-29424311754406f71d32cd2802d7c7687cfb4ad2.tar.gz
bcm5719-llvm-29424311754406f71d32cd2802d7c7687cfb4ad2.zip
Add an option to enable prototype "fission" capabilities and debug changes.
llvm-svn: 167765
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp14
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h2
2 files changed, 16 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 367b5230792..742a779b6fe 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -78,6 +78,15 @@ static cl::opt<DefaultOnOff> DarwinGDBCompat("darwin-gdb-compat", cl::Hidden,
clEnumValEnd),
cl::init(Default));
+static cl::opt<DefaultOnOff> DwarfFission("dwarf-fission", cl::Hidden,
+ cl::desc("Output prototype dwarf fission."),
+ cl::values(
+ clEnumVal(Default, "Default for platform"),
+ clEnumVal(Enable, "Enabled"),
+ clEnumVal(Disable, "Disabled"),
+ clEnumValEnd),
+ cl::init(Default));
+
namespace {
const char *DWARFGroupName = "DWARF Emission";
const char *DbgTimerName = "DWARF Debug Writer";
@@ -174,6 +183,11 @@ DwarfDebug::DwarfDebug(AsmPrinter *A, Module *M)
} else
hasDwarfAccelTables = DwarfAccelTables == Enable ? true : false;
+ if (DwarfFission == Default)
+ hasDwarfFission = false;
+ else
+ hasDwarfFission = DwarfFission == Enable ? true : false;
+
{
NamedRegionTimer T(DbgTimerName, DWARFGroupName, TimePassesIsEnabled);
beginModule(M);
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
index 61d9a51a527..1188ffa73ca 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -319,6 +319,7 @@ class DwarfDebug {
// A holder for the DarwinGDBCompat flag so that the compile unit can use it.
bool isDarwinGDBCompat;
bool hasDwarfAccelTables;
+ bool hasDwarfFission;
private:
/// assignAbbrevNumber - Define a unique number for the abbreviation.
@@ -537,6 +538,7 @@ public:
/// output to the limitations of darwin gdb.
bool useDarwinGDBCompat() { return isDarwinGDBCompat; }
bool useDwarfAccelTables() { return hasDwarfAccelTables; }
+ bool useDwarfFission() { return hasDwarfFission; }
};
} // End of namespace llvm
OpenPOWER on IntegriCloud