diff options
author | David Blaikie <dblaikie@gmail.com> | 2018-11-13 20:08:13 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2018-11-13 20:08:13 +0000 |
commit | 27692de9cfa6224f496b982e12ecd3fb86593cc9 (patch) | |
tree | 12088e9014d61240f1ad37a0b5e8642964722310 /clang/lib/CodeGen | |
parent | bb279116f29617467a176f065c8ca4e84174e7f7 (diff) | |
download | bcm5719-llvm-27692de9cfa6224f496b982e12ecd3fb86593cc9.tar.gz bcm5719-llvm-27692de9cfa6224f496b982e12ecd3fb86593cc9.zip |
DebugInfo: Add a driver flag for DWARF debug_ranges base address specifier use.
Summary:
This saves a lot of relocations in optimized object files (at the cost
of some cost/increase in linked executable bytes), but gold's 32 bit
gdb-index support has a bug (
https://sourceware.org/bugzilla/show_bug.cgi?id=21894 ) so we can't
switch to this unconditionally. (& even if it weren't for that bug, one
might argue that some users would want to optimize in one direction or
the other - prioritizing object size or linked executable size)
Differential Revision: https://reviews.llvm.org/D54243
llvm-svn: 346789
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 81cc07dddd1..24c76c2037f 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -586,7 +586,8 @@ void CGDebugInfo::CreateCompileUnit() { CGM.getTarget().getTriple().isNVPTX() ? llvm::DICompileUnit::DebugNameTableKind::None : static_cast<llvm::DICompileUnit::DebugNameTableKind>( - CGOpts.DebugNameTable)); + CGOpts.DebugNameTable), + CGOpts.DebugRangesBaseAddress); } llvm::DIType *CGDebugInfo::CreateType(const BuiltinType *BT) { |