mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Disable emission of aranges by default and add a command line
option to enable again that will be matched with a commit to enable in clang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201378 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5cb9925acd
commit
5483012b4d
@ -67,6 +67,11 @@ GenerateGnuPubSections("generate-gnu-dwarf-pub-sections", cl::Hidden,
|
||||
cl::desc("Generate GNU-style pubnames and pubtypes"),
|
||||
cl::init(false));
|
||||
|
||||
static cl::opt<bool> GenerateARangeSection("generate-arange-section",
|
||||
cl::Hidden,
|
||||
cl::desc("Generate dwarf aranges"),
|
||||
cl::init(false));
|
||||
|
||||
namespace {
|
||||
enum DefaultOnOff { Default, Enable, Disable };
|
||||
}
|
||||
@ -1154,7 +1159,8 @@ void DwarfDebug::endModule() {
|
||||
emitDebugLoc();
|
||||
|
||||
// Emit info into a debug aranges section.
|
||||
emitDebugARanges();
|
||||
if (GenerateARangeSection)
|
||||
emitDebugARanges();
|
||||
|
||||
// Emit info into a debug ranges section.
|
||||
emitDebugRanges();
|
||||
|
@ -1,7 +1,7 @@
|
||||
; REQUIRES: object-emission
|
||||
|
||||
; RUN: llc -mtriple=x86_64-linux -O0 -filetype=obj < %s | llvm-dwarfdump -debug-dump=aranges - | FileCheck %s
|
||||
; RUN: llc -mtriple=x86_64-linux -O0 -filetype=obj < %s | llvm-readobj --relocations - | FileCheck --check-prefix=OBJ %s
|
||||
; RUN: llc -mtriple=x86_64-linux -O0 -filetype=obj -generate-arange-section < %s | llvm-dwarfdump -debug-dump=aranges - | FileCheck %s
|
||||
; RUN: llc -mtriple=x86_64-linux -O0 -filetype=obj -generate-arange-section < %s | llvm-readobj --relocations - | FileCheck --check-prefix=OBJ %s
|
||||
|
||||
; extern int i;
|
||||
; template<int *x>
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llc < %s | FileCheck %s
|
||||
; RUN: llc -generate-arange-section < %s | FileCheck %s
|
||||
|
||||
; CHECK: .short 2 # DWARF Arange version number
|
||||
; CHECK: # Segment Size
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llc < %s | FileCheck %s
|
||||
; RUN: llc -generate-arange-section < %s | FileCheck %s
|
||||
|
||||
|
||||
; -- header --
|
||||
|
@ -110,7 +110,5 @@
|
||||
; OBJ-NEXT: R_X86_64_32 .debug_addr
|
||||
; OBJ-NEXT: R_X86_64_32 .debug_str
|
||||
; OBJ-NEXT: }
|
||||
; OBJ: .debug_aranges
|
||||
; OBJ-NEXT: R_X86_64_32 .debug_info 0x0
|
||||
|
||||
!9 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llc < %s | FileCheck %s
|
||||
; RUN: llc -generate-arange-section < %s | FileCheck %s
|
||||
|
||||
; First CU
|
||||
; CHECK: .long 44 # Length of ARange Set
|
||||
|
Loading…
x
Reference in New Issue
Block a user