diff options
author | Eric Christopher <echristo@gmail.com> | 2014-03-12 17:14:43 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-03-12 17:14:43 +0000 |
commit | 020026c5f6faf643c127b16d9dcae1d37c658494 (patch) | |
tree | 00acb98fad727d604fcd94559a1daf705d31fa15 | |
parent | e519c39eaaae08dbbb5cafbeee1931ff02420b38 (diff) | |
download | llvm-020026c5f6faf643c127b16d9dcae1d37c658494.tar.gz llvm-020026c5f6faf643c127b16d9dcae1d37c658494.tar.bz2 llvm-020026c5f6faf643c127b16d9dcae1d37c658494.tar.xz |
Turn on hashing by default for split dwarf compile units.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203680 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 | ||||
-rw-r--r-- | test/DebugInfo/X86/fission-hash.ll | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index a9c31ad797..e4ec6e7e40 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/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/test/DebugInfo/X86/fission-hash.ll b/test/DebugInfo/X86/fission-hash.ll index ff6cf26db3..3987faaf97 100644 --- a/test/DebugInfo/X86/fission-hash.ll +++ b/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. |