mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-21 19:20:28 +00:00
Simplify file/directory name handling in DILexicalBlock
llvm-svn: 176993
This commit is contained in:
parent
d2ec7b04e9
commit
27dd933a64
@ -621,12 +621,10 @@ namespace llvm {
|
||||
unsigned getLineNumber() const { return getUnsignedField(2); }
|
||||
unsigned getColumnNumber() const { return getUnsignedField(3); }
|
||||
StringRef getDirectory() const {
|
||||
StringRef dir = getFieldAs<DIFile>(4).getDirectory();
|
||||
return !dir.empty() ? dir : getContext().getDirectory();
|
||||
return getFieldAs<DIFile>(4).getDirectory();
|
||||
}
|
||||
StringRef getFilename() const {
|
||||
StringRef filename = getFieldAs<DIFile>(4).getFilename();
|
||||
return !filename.empty() ? filename : getContext().getFilename();
|
||||
return getFieldAs<DIFile>(4).getFilename();
|
||||
}
|
||||
bool Verify() const;
|
||||
};
|
||||
|
@ -55,9 +55,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 ]
|
||||
!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 ]
|
||||
!27 = metadata !{i32 786443, metadata !19, i32 22, i32 0} ; [ DW_TAG_lexical_block ]
|
||||
!27 = metadata !{i32 786443, metadata !19, i32 22, i32 0, metadata !1, i32 0} ; [ DW_TAG_lexical_block ]
|
||||
!28 = metadata !{i32 18, i32 0, metadata !29, null}
|
||||
!29 = metadata !{i32 786443, metadata !9, i32 17, i32 0} ; [ DW_TAG_lexical_block ]
|
||||
!29 = metadata !{i32 786443, metadata !9, i32 17, i32 0, metadata !1, i32 1} ; [ DW_TAG_lexical_block ]
|
||||
!30 = metadata !{i32 19, i32 0, metadata !29, null}
|
||||
|
||||
; The variable bar:myvar changes registers after the first movq.
|
||||
|
Loading…
Reference in New Issue
Block a user