mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Refactor out the DIFile parameter to DILexicalBlock to refer to the raw file/directory pair
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177742 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
be67aa52a8
commit
4b52a88e90
@ -593,12 +593,6 @@ namespace llvm {
|
|||||||
DIScope getContext() const { return getFieldAs<DIScope>(2); }
|
DIScope getContext() const { return getFieldAs<DIScope>(2); }
|
||||||
unsigned getLineNumber() const { return getUnsignedField(3); }
|
unsigned getLineNumber() const { return getUnsignedField(3); }
|
||||||
unsigned getColumnNumber() const { return getUnsignedField(4); }
|
unsigned getColumnNumber() const { return getUnsignedField(4); }
|
||||||
StringRef getDirectory() const {
|
|
||||||
return getFieldAs<DIFile>(1).getDirectory();
|
|
||||||
}
|
|
||||||
StringRef getFilename() const {
|
|
||||||
return getFieldAs<DIFile>(1).getFilename();
|
|
||||||
}
|
|
||||||
bool Verify() const;
|
bool Verify() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1023,7 +1023,7 @@ DILexicalBlock DIBuilder::createLexicalBlock(DIDescriptor Scope, DIFile File,
|
|||||||
static unsigned int unique_id = 0;
|
static unsigned int unique_id = 0;
|
||||||
Value *Elts[] = {
|
Value *Elts[] = {
|
||||||
GetTagConstant(VMContext, dwarf::DW_TAG_lexical_block),
|
GetTagConstant(VMContext, dwarf::DW_TAG_lexical_block),
|
||||||
File,
|
File.getFileNode(),
|
||||||
getNonCompileUnitScope(Scope),
|
getNonCompileUnitScope(Scope),
|
||||||
ConstantInt::get(Type::getInt32Ty(VMContext), Line),
|
ConstantInt::get(Type::getInt32Ty(VMContext), Line),
|
||||||
ConstantInt::get(Type::getInt32Ty(VMContext), Col),
|
ConstantInt::get(Type::getInt32Ty(VMContext), Col),
|
||||||
|
@ -666,8 +666,6 @@ StringRef DIScope::getFilename() const {
|
|||||||
return StringRef();
|
return StringRef();
|
||||||
if (isLexicalBlockFile())
|
if (isLexicalBlockFile())
|
||||||
return DILexicalBlockFile(DbgNode).getFilename();
|
return DILexicalBlockFile(DbgNode).getFilename();
|
||||||
if (isLexicalBlock())
|
|
||||||
return DILexicalBlock(DbgNode).getFilename();
|
|
||||||
return ::getStringField(getNodeField(DbgNode, 1), 0);
|
return ::getStringField(getNodeField(DbgNode, 1), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -676,8 +674,6 @@ StringRef DIScope::getDirectory() const {
|
|||||||
return StringRef();
|
return StringRef();
|
||||||
if (isLexicalBlockFile())
|
if (isLexicalBlockFile())
|
||||||
return DILexicalBlockFile(DbgNode).getDirectory();
|
return DILexicalBlockFile(DbgNode).getDirectory();
|
||||||
if (isLexicalBlock())
|
|
||||||
return DILexicalBlock(DbgNode).getDirectory();
|
|
||||||
return ::getStringField(getNodeField(DbgNode, 1), 1);
|
return ::getStringField(getNodeField(DbgNode, 1), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,9 +50,9 @@ declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone
|
|||||||
!24 = metadata !{i32 786468, metadata !1, metadata !"char", metadata !1, i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ]
|
!24 = metadata !{i32 786468, metadata !1, metadata !"char", metadata !1, i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ]
|
||||||
!25 = metadata !{i32 786689, metadata !19, metadata !"argv", metadata !1, i32 22, metadata !22, i32 0, null} ; [ DW_TAG_arg_variable ]
|
!25 = metadata !{i32 786689, metadata !19, metadata !"argv", metadata !1, i32 22, metadata !22, i32 0, null} ; [ DW_TAG_arg_variable ]
|
||||||
!26 = metadata !{i32 786688, metadata !27, metadata !"e", metadata !1, i32 23, metadata !14, i32 0, null} ; [ DW_TAG_auto_variable ]
|
!26 = metadata !{i32 786688, metadata !27, metadata !"e", metadata !1, i32 23, metadata !14, i32 0, null} ; [ DW_TAG_auto_variable ]
|
||||||
!27 = metadata !{i32 786443, metadata !1, metadata !19, i32 22, i32 0, i32 0} ; [ DW_TAG_lexical_block ]
|
!27 = metadata !{i32 786443, metadata !36, metadata !19, i32 22, i32 0, i32 0} ; [ DW_TAG_lexical_block ]
|
||||||
!28 = metadata !{i32 18, i32 0, metadata !29, null}
|
!28 = metadata !{i32 18, i32 0, metadata !29, null}
|
||||||
!29 = metadata !{i32 786443, metadata !1, metadata !9, i32 17, i32 0, i32 1} ; [ DW_TAG_lexical_block ]
|
!29 = metadata !{i32 786443, metadata !36, metadata !9, i32 17, i32 0, i32 1} ; [ DW_TAG_lexical_block ]
|
||||||
!30 = metadata !{i32 19, i32 0, metadata !29, null}
|
!30 = metadata !{i32 19, i32 0, metadata !29, null}
|
||||||
!31 = metadata !{metadata !0}
|
!31 = metadata !{metadata !0}
|
||||||
!32 = metadata !{metadata !5, metadata !9, metadata !19}
|
!32 = metadata !{metadata !5, metadata !9, metadata !19}
|
||||||
|
@ -38,7 +38,7 @@ declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone
|
|||||||
!8 = metadata !{i32 786447, metadata !0, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !9} ; [ DW_TAG_pointer_type ]
|
!8 = metadata !{i32 786447, metadata !0, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !9} ; [ DW_TAG_pointer_type ]
|
||||||
!9 = metadata !{i32 786468, metadata !0, metadata !"char", null, i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ]
|
!9 = metadata !{i32 786468, metadata !0, metadata !"char", null, i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ]
|
||||||
!10 = metadata !{i32 786688, metadata !11, metadata !"a", metadata !2, i32 3, metadata !9, i32 0, null} ; [ DW_TAG_auto_variable ]
|
!10 = metadata !{i32 786688, metadata !11, metadata !"a", metadata !2, i32 3, metadata !9, i32 0, null} ; [ DW_TAG_auto_variable ]
|
||||||
!11 = metadata !{i32 786443, metadata !2, metadata !1, i32 2, i32 25, i32 0} ; [ DW_TAG_lexical_block ]
|
!11 = metadata !{i32 786443, metadata !20, metadata !1, i32 2, i32 25, i32 0} ; [ DW_TAG_lexical_block ]
|
||||||
!12 = metadata !{i32 2, i32 13, metadata !1, null}
|
!12 = metadata !{i32 2, i32 13, metadata !1, null}
|
||||||
!13 = metadata !{i32 2, i32 22, metadata !1, null}
|
!13 = metadata !{i32 2, i32 22, metadata !1, null}
|
||||||
!14 = metadata !{i32 3, i32 14, metadata !11, null}
|
!14 = metadata !{i32 3, i32 14, metadata !11, null}
|
||||||
|
@ -31,7 +31,7 @@ declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone
|
|||||||
!9 = metadata !{metadata !10}
|
!9 = metadata !{metadata !10}
|
||||||
!10 = metadata !{i32 786445, metadata !1, metadata !"c", metadata !1, i32 2, i64 32, i64 32, i64 0, i32 0, metadata !5} ; [ DW_TAG_member ]
|
!10 = metadata !{i32 786445, metadata !1, metadata !"c", metadata !1, i32 2, i64 32, i64 32, i64 0, i32 0, metadata !5} ; [ DW_TAG_member ]
|
||||||
!11 = metadata !{i32 786688, metadata !12, metadata !"x", metadata !1, i32 6, metadata !5, i32 0, null} ; [ DW_TAG_auto_variable ]
|
!11 = metadata !{i32 786688, metadata !12, metadata !"x", metadata !1, i32 6, metadata !5, i32 0, null} ; [ DW_TAG_auto_variable ]
|
||||||
!12 = metadata !{i32 786443, metadata !1, metadata !0, i32 5, i32 22, i32 0} ; [ DW_TAG_lexical_block ]
|
!12 = metadata !{i32 786443, metadata !22, metadata !0, i32 5, i32 22, i32 0} ; [ DW_TAG_lexical_block ]
|
||||||
!13 = metadata !{i32 5, i32 19, metadata !0, null}
|
!13 = metadata !{i32 5, i32 19, metadata !0, null}
|
||||||
!14 = metadata !{i32 6, i32 14, metadata !12, null}
|
!14 = metadata !{i32 6, i32 14, metadata !12, null}
|
||||||
!15 = metadata !{metadata !"int", metadata !16}
|
!15 = metadata !{metadata !"int", metadata !16}
|
||||||
|
@ -31,7 +31,7 @@ declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone
|
|||||||
!12 = metadata !{metadata !14}
|
!12 = metadata !{metadata !14}
|
||||||
!14 = metadata !{i32 720948, i32 0, null, metadata !"GLB", metadata !"GLB", metadata !"", metadata !6, i32 1, metadata !9, i32 0, i32 1, i32* @GLB, null} ; [ DW_TAG_variable ]
|
!14 = metadata !{i32 720948, i32 0, null, metadata !"GLB", metadata !"GLB", metadata !"", metadata !6, i32 1, metadata !9, i32 0, i32 1, i32* @GLB, null} ; [ DW_TAG_variable ]
|
||||||
!15 = metadata !{i32 786688, metadata !16, metadata !"LOC", metadata !6, i32 4, metadata !9, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
|
!15 = metadata !{i32 786688, metadata !16, metadata !"LOC", metadata !6, i32 4, metadata !9, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
|
||||||
!16 = metadata !{i32 786443, metadata !6, metadata !5, i32 3, i32 9, i32 0} ; [ DW_TAG_lexical_block ]
|
!16 = metadata !{i32 786443, metadata !20, metadata !5, i32 3, i32 9, i32 0} ; [ DW_TAG_lexical_block ]
|
||||||
!17 = metadata !{i32 4, i32 9, metadata !16, null}
|
!17 = metadata !{i32 4, i32 9, metadata !16, null}
|
||||||
!18 = metadata !{i32 4, i32 23, metadata !16, null}
|
!18 = metadata !{i32 4, i32 23, metadata !16, null}
|
||||||
!19 = metadata !{i32 5, i32 5, metadata !16, null}
|
!19 = metadata !{i32 5, i32 5, metadata !16, null}
|
||||||
|
@ -41,7 +41,7 @@ declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone
|
|||||||
!12 = metadata !{i32 786689, metadata !5, metadata !"x", metadata !6, i32 16777221, metadata !9, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
!12 = metadata !{i32 786689, metadata !5, metadata !"x", metadata !6, i32 16777221, metadata !9, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||||
!13 = metadata !{i32 5, i32 5, metadata !5, null}
|
!13 = metadata !{i32 5, i32 5, metadata !5, null}
|
||||||
!14 = metadata !{i32 786688, metadata !15, metadata !"y", metadata !6, i32 8, metadata !9, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
|
!14 = metadata !{i32 786688, metadata !15, metadata !"y", metadata !6, i32 8, metadata !9, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
|
||||||
!15 = metadata !{i32 786443, metadata !6, metadata !5, i32 7, i32 1, i32 0} ; [ DW_TAG_lexical_block ]
|
!15 = metadata !{i32 786443, metadata !19, metadata !5, i32 7, i32 1, i32 0} ; [ DW_TAG_lexical_block ]
|
||||||
!16 = metadata !{i32 8, i32 9, metadata !15, null}
|
!16 = metadata !{i32 8, i32 9, metadata !15, null}
|
||||||
!17 = metadata !{i32 8, i32 18, metadata !15, null}
|
!17 = metadata !{i32 8, i32 18, metadata !15, null}
|
||||||
!18 = metadata !{i32 9, i32 5, metadata !15, null}
|
!18 = metadata !{i32 9, i32 5, metadata !15, null}
|
||||||
|
@ -58,10 +58,10 @@ entry:
|
|||||||
!15 = metadata !{i32 786689, metadata !5, metadata !"a", metadata !6, i32 16777218, metadata !9, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [a] [line 2]
|
!15 = metadata !{i32 786689, metadata !5, metadata !"a", metadata !6, i32 16777218, metadata !9, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [a] [line 2]
|
||||||
!16 = metadata !{i32 2, i32 0, metadata !5, null}
|
!16 = metadata !{i32 2, i32 0, metadata !5, null}
|
||||||
!17 = metadata !{i32 4, i32 0, metadata !18, null}
|
!17 = metadata !{i32 4, i32 0, metadata !18, null}
|
||||||
!18 = metadata !{i32 786443, metadata !6, metadata !5, i32 3, i32 0, i32 0} ; [ DW_TAG_lexical_block ]
|
!18 = metadata !{i32 786443, metadata !23, metadata !5, i32 3, i32 0, i32 0} ; [ DW_TAG_lexical_block ]
|
||||||
!19 = metadata !{i32 786689, metadata !13, metadata !"a", metadata !14, i32 16777217, metadata !9, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [a] [line 1]
|
!19 = metadata !{i32 786689, metadata !13, metadata !"a", metadata !14, i32 16777217, metadata !9, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [a] [line 1]
|
||||||
!20 = metadata !{i32 1, i32 0, metadata !13, null}
|
!20 = metadata !{i32 1, i32 0, metadata !13, null}
|
||||||
!21 = metadata !{i32 2, i32 0, metadata !22, null}
|
!21 = metadata !{i32 2, i32 0, metadata !22, null}
|
||||||
!22 = metadata !{i32 786443, metadata !14, metadata !13, i32 1, i32 0, i32 0} ; [ DW_TAG_lexical_block ]
|
!22 = metadata !{i32 786443, metadata !24, metadata !13, i32 1, i32 0, i32 0} ; [ DW_TAG_lexical_block ]
|
||||||
!23 = metadata !{metadata !"simple.c", metadata !"/private/tmp"}
|
!23 = metadata !{metadata !"simple.c", metadata !"/private/tmp"}
|
||||||
!24 = metadata !{metadata !"simple2.c", metadata !"/private/tmp"}
|
!24 = metadata !{metadata !"simple2.c", metadata !"/private/tmp"}
|
||||||
|
Loading…
Reference in New Issue
Block a user