summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-03-12 17:14:43 +0000
committerEric Christopher <echristo@gmail.com>2014-03-12 17:14:43 +0000
commit7924e0cca2f79db6762544f8774d821009922461 (patch)
treeecc2dc42f39e9310f66338706e4d96bd2bcfb6c6 /llvm
parentf404b93576154f13567ddfa50beb2420f82b6dcf (diff)
downloadbcm5719-llvm-7924e0cca2f79db6762544f8774d821009922461.tar.gz
bcm5719-llvm-7924e0cca2f79db6762544f8774d821009922461.zip
Turn on hashing by default for split dwarf compile units.
llvm-svn: 203680
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
-rw-r--r--llvm/test/DebugInfo/X86/fission-hash.ll2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index a9c31ad7978..e4ec6e7e40e 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -62,7 +62,7 @@ static cl::opt<bool> UnknownLocations(
static cl::opt<bool> GenerateCUHash("generate-cu-hash", cl::Hidden,
cl::desc("Add the CU hash as the dwo_id."),
- cl::init(false));
+ cl::init(true));
static cl::opt<bool>
GenerateGnuPubSections("generate-gnu-dwarf-pub-sections", cl::Hidden,
diff --git a/llvm/test/DebugInfo/X86/fission-hash.ll b/llvm/test/DebugInfo/X86/fission-hash.ll
index ff6cf26db3b..3987faaf971 100644
--- a/llvm/test/DebugInfo/X86/fission-hash.ll
+++ b/llvm/test/DebugInfo/X86/fission-hash.ll
@@ -1,4 +1,4 @@
-; RUN: llc -split-dwarf=Enable -generate-cu-hash -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t
+; RUN: llc -split-dwarf=Enable -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t
; RUN: llvm-dwarfdump -debug-dump=all %t | FileCheck %s
; The source is an empty file.
OpenPOWER on IntegriCloud