mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25: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:
@@ -67,6 +67,11 @@ GenerateGnuPubSections("generate-gnu-dwarf-pub-sections", cl::Hidden,
|
|||||||
cl::desc("Generate GNU-style pubnames and pubtypes"),
|
cl::desc("Generate GNU-style pubnames and pubtypes"),
|
||||||
cl::init(false));
|
cl::init(false));
|
||||||
|
|
||||||
|
static cl::opt<bool> GenerateARangeSection("generate-arange-section",
|
||||||
|
cl::Hidden,
|
||||||
|
cl::desc("Generate dwarf aranges"),
|
||||||
|
cl::init(false));
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
enum DefaultOnOff { Default, Enable, Disable };
|
enum DefaultOnOff { Default, Enable, Disable };
|
||||||
}
|
}
|
||||||
@@ -1154,7 +1159,8 @@ void DwarfDebug::endModule() {
|
|||||||
emitDebugLoc();
|
emitDebugLoc();
|
||||||
|
|
||||||
// Emit info into a debug aranges section.
|
// Emit info into a debug aranges section.
|
||||||
emitDebugARanges();
|
if (GenerateARangeSection)
|
||||||
|
emitDebugARanges();
|
||||||
|
|
||||||
// Emit info into a debug ranges section.
|
// Emit info into a debug ranges section.
|
||||||
emitDebugRanges();
|
emitDebugRanges();
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
; REQUIRES: object-emission
|
; 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 -generate-arange-section < %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-readobj --relocations - | FileCheck --check-prefix=OBJ %s
|
||||||
|
|
||||||
; extern int i;
|
; extern int i;
|
||||||
; template<int *x>
|
; 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: .short 2 # DWARF Arange version number
|
||||||
; CHECK: # Segment Size
|
; CHECK: # Segment Size
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
; RUN: llc < %s | FileCheck %s
|
; RUN: llc -generate-arange-section < %s | FileCheck %s
|
||||||
|
|
||||||
|
|
||||||
; -- header --
|
; -- header --
|
||||||
|
@@ -110,7 +110,5 @@
|
|||||||
; OBJ-NEXT: R_X86_64_32 .debug_addr
|
; OBJ-NEXT: R_X86_64_32 .debug_addr
|
||||||
; OBJ-NEXT: R_X86_64_32 .debug_str
|
; OBJ-NEXT: R_X86_64_32 .debug_str
|
||||||
; OBJ-NEXT: }
|
; OBJ-NEXT: }
|
||||||
; OBJ: .debug_aranges
|
|
||||||
; OBJ-NEXT: R_X86_64_32 .debug_info 0x0
|
|
||||||
|
|
||||||
!9 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}
|
!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
|
; First CU
|
||||||
; CHECK: .long 44 # Length of ARange Set
|
; CHECK: .long 44 # Length of ARange Set
|
||||||
|
Reference in New Issue
Block a user