summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
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/AsmPrinter/DwarfDebug.cpp
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/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp14
1 files changed, 14 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);
OpenPOWER on IntegriCloud