Skip to content

Commit cd37775

Browse files
authored
Merge pull request #16308 from apple/fix-lto-test
Update llvm-dwarfdump to use --debug-line vs -debug-dump=line
2 parents 0506ccc + b93eeed commit cd37775

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validation-test/BuildSystem/LTO/lto-object-files-only-have-line-tables.test-sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ else
3333
echo "Found swift-demangle LTO object!"
3434
fi
3535

36-
${DWARFDUMP} -debug-dump=line ${SWIFT_DEMANGLE_LTO_OBJECT_FILE} > ${TEMP_DIR}/line.info
36+
${DWARFDUMP} --debug-line ${SWIFT_DEMANGLE_LTO_OBJECT_FILE} > ${TEMP_DIR}/line.info
3737

3838
# Make sure that we found a line table.
3939
if [[ -z "$(sed -n "/include_directories.*=.*include\/swift/{p;q;}" ${TEMP_DIR}/line.info)" ]] ; then
@@ -43,7 +43,7 @@ else
4343
echo "Found line table information for swift-demangle in swift LTO object"
4444
fi
4545

46-
${DWARFDUMP} -debug-dump=apple_types ${SWIFT_DEMANGLE_LTO_OBJECT_FILE} > ${TEMP_DIR}/types.info
46+
${DWARFDUMP} -apple-types ${SWIFT_DEMANGLE_LTO_OBJECT_FILE} > ${TEMP_DIR}/types.info
4747

4848
# And that it does not have full debug info
4949
if [[ -n "$(sed -n '/Name:.*SmallVector<..*>/{p;q;}' ${TEMP_DIR}/types.info)" ]] ; then

0 commit comments

Comments
 (0)