Skip to content

Commit bbaefb5

Browse files
committed
Manually merged main:3c423722cfd75bf293e42001145fe9ebad53c522 into amd-gfx:52eb0adfd010
Local branch amd-gfx 52eb0ad Update LLVM_MAIN_REVISION Remote branch main 3c42372 [X86] combineLoad - improve constant pool matches by ignoring undef elements
2 parents 52eb0ad + 3c42372 commit bbaefb5

File tree

1,001 files changed

+68327
-24121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,001 files changed

+68327
-24121
lines changed

.github/workflows/release-binaries.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
description: 'Tag to build'
1616
required: true
1717
type: string
18+
schedule:
19+
# * is a special character in YAML so you have to quote this string
20+
- cron: '0 8 1 * *'
1821

1922
permissions:
2023
contents: read # Default everything to read-only
@@ -26,7 +29,7 @@ jobs:
2629
if: github.repository == 'llvm/llvm-project'
2730
outputs:
2831
release-version: ${{ steps.validate-tag.outputs.release-version }}
29-
release: ${{ steps.validate-tag.outputs.release }}
32+
flags: ${{ steps.validate-tag.outputs.flags }}
3033
build-dir: ${{ steps.validate-tag.outputs.build-dir }}
3134
rc-flags: ${{ steps.validate-tag.outputs.rc-flags }}
3235
ref: ${{ steps.validate-tag.outputs.ref }}
@@ -50,6 +53,11 @@ jobs:
5053
tag="${{ github.ref_name }}"
5154
trimmed=$(echo ${{ inputs.tag }} | xargs)
5255
[[ "$trimmed" != "" ]] && tag="$trimmed"
56+
if [ "$tag" = "main" ]; then
57+
# If tag is main, then we've been triggered by a scheduled so pass so
58+
# use the head commit as the tag.
59+
tag=`git rev-parse HEAD`
60+
fi
5361
if [ -n "${{ inputs.upload }}" ]; then
5462
upload="${{ inputs.upload }}"
5563
else
@@ -71,7 +79,7 @@ jobs:
7179
- name: Checkout LLVM
7280
uses: actions/checkout@v4
7381
with:
74-
ref: ${{ inputs.tag || github.ref_name }}
82+
ref: ${{ needs.prepare.outputs.ref }}
7583

7684
- name: Install Ninja
7785
uses: llvm/actions/install-ninja@main
@@ -140,8 +148,7 @@ jobs:
140148
- name: Build and test release
141149
run: |
142150
${{ needs.prepare.outputs.build-dir }}/llvm-project/llvm/utils/release/test-release.sh \
143-
-release ${{ needs.prepare.outputs.release }} \
144-
${{ needs.prepare.outputs.rc-flags }} \
151+
${{ needs.prepare.outputs.flags }} \
145152
-triple ${{ matrix.target.triple }} \
146153
-use-ninja \
147154
-no-checkout \

.github/workflows/set-release-binary-outputs.sh

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,32 @@ if [[ "$github_user" != "tstellar" && "$github_user" != "tru" ]]; then
1616
echo "ERROR: User not allowed: $github_user"
1717
exit 1
1818
fi
19-
pattern='^llvmorg-[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc[0-9]\+\)\?$'
20-
echo "$tag" | grep -e $pattern
21-
if [ $? != 0 ]; then
22-
echo "ERROR: Tag '$tag' doesn't match pattern: $pattern"
23-
exit 1
19+
20+
if echo $tag | grep -e '^[0-9a-f]\+$'; then
21+
# This is a plain commit.
22+
# TODO: Don't hardcode this.
23+
release_version="18"
24+
build_dir="$tag"
25+
upload='false'
26+
ref="$tag"
27+
flags="-git-ref $tag -test-asserts"
28+
29+
else
30+
31+
pattern='^llvmorg-[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc[0-9]\+\)\?$'
32+
echo "$tag" | grep -e $pattern
33+
if [ $? != 0 ]; then
34+
echo "ERROR: Tag '$tag' doesn't match pattern: $pattern"
35+
exit 1
36+
fi
37+
release_version=`echo "$tag" | sed 's/llvmorg-//g'`
38+
release=`echo "$release_version" | sed 's/-.*//g'`
39+
build_dir=`echo "$release_version" | sed 's,^[^-]\+,final,' | sed 's,[^-]\+-rc\(.\+\),rc\1,'`
40+
rc_flags=`echo "$release_version" | sed 's,^[^-]\+,-final,' | sed 's,[^-]\+-rc\(.\+\),-rc \1 -test-asserts,' | sed 's,--,-,'`
41+
flags="-release $release $rc_flags"
2442
fi
25-
release_version=`echo "$tag" | sed 's/llvmorg-//g'`
26-
release=`echo "$release_version" | sed 's/-.*//g'`
27-
build_dir=`echo "$release_version" | sed 's,^[^-]\+,final,' | sed 's,[^-]\+-rc\(.\+\),rc\1,'`
28-
rc_flags=`echo "$release_version" | sed 's,^[^-]\+,-final,' | sed 's,[^-]\+-rc\(.\+\),-rc \1 -test-asserts,' | sed 's,--,-,'`
2943
echo "release-version=$release_version" >> $GITHUB_OUTPUT
30-
echo "release=$release" >> $GITHUB_OUTPUT
3144
echo "build-dir=$build_dir" >> $GITHUB_OUTPUT
32-
echo "rc-flags=$rc_flags" >> $GITHUB_OUTPUT
45+
echo "flags=$flags" >> $GITHUB_OUTPUT
3346
echo "upload=$upload" >> $GITHUB_OUTPUT
3447
echo "ref=$tag" >> $GITHUB_OUTPUT

bolt/include/bolt/Core/BinaryContext.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,8 +900,8 @@ class BinaryContext {
900900
/// Return true if \p SymbolName was generated internally and was not present
901901
/// in the input binary.
902902
bool isInternalSymbolName(const StringRef Name) {
903-
return Name.startswith("SYMBOLat") || Name.startswith("DATAat") ||
904-
Name.startswith("HOLEat");
903+
return Name.starts_with("SYMBOLat") || Name.starts_with("DATAat") ||
904+
Name.starts_with("HOLEat");
905905
}
906906

907907
MCSymbol *getHotTextStartSymbol() const {

bolt/lib/Core/BinaryContext.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ void BinaryContext::generateSymbolHashes() {
10861086
auto isPadding = [](const BinaryData &BD) {
10871087
StringRef Contents = BD.getSection().getContents();
10881088
StringRef SymData = Contents.substr(BD.getOffset(), BD.getSize());
1089-
return (BD.getName().startswith("HOLEat") ||
1089+
return (BD.getName().starts_with("HOLEat") ||
10901090
SymData.find_first_not_of(0) == StringRef::npos);
10911091
};
10921092

@@ -1326,8 +1326,8 @@ void BinaryContext::postProcessSymbolTable() {
13261326
bool Valid = true;
13271327
for (auto &Entry : BinaryDataMap) {
13281328
BinaryData *BD = Entry.second;
1329-
if ((BD->getName().startswith("SYMBOLat") ||
1330-
BD->getName().startswith("DATAat")) &&
1329+
if ((BD->getName().starts_with("SYMBOLat") ||
1330+
BD->getName().starts_with("DATAat")) &&
13311331
!BD->getParent() && !BD->getSize() && !BD->isAbsolute() &&
13321332
BD->getSection()) {
13331333
errs() << "BOLT-WARNING: zero-sized top level symbol: " << *BD << "\n";
@@ -1410,9 +1410,9 @@ void BinaryContext::fixBinaryDataHoles() {
14101410
auto isNotHole = [&Section](const binary_data_iterator &Itr) {
14111411
BinaryData *BD = Itr->second;
14121412
bool isHole = (!BD->getParent() && !BD->getSize() && BD->isObject() &&
1413-
(BD->getName().startswith("SYMBOLat0x") ||
1414-
BD->getName().startswith("DATAat0x") ||
1415-
BD->getName().startswith("ANONYMOUS")));
1413+
(BD->getName().starts_with("SYMBOLat0x") ||
1414+
BD->getName().starts_with("DATAat0x") ||
1415+
BD->getName().starts_with("ANONYMOUS")));
14161416
return !isHole && BD->getSection() == Section && !BD->getParent();
14171417
};
14181418

@@ -1818,14 +1818,14 @@ MarkerSymType BinaryContext::getMarkerType(const SymbolRef &Symbol) const {
18181818
if (*TypeOrError != SymbolRef::ST_Unknown)
18191819
return MarkerSymType::NONE;
18201820

1821-
if (*NameOrError == "$x" || NameOrError->startswith("$x."))
1821+
if (*NameOrError == "$x" || NameOrError->starts_with("$x."))
18221822
return MarkerSymType::CODE;
18231823

18241824
// $x<ISA>
1825-
if (isRISCV() && NameOrError->startswith("$x"))
1825+
if (isRISCV() && NameOrError->starts_with("$x"))
18261826
return MarkerSymType::CODE;
18271827

1828-
if (*NameOrError == "$d" || NameOrError->startswith("$d."))
1828+
if (*NameOrError == "$d" || NameOrError->starts_with("$d."))
18291829
return MarkerSymType::DATA;
18301830

18311831
return MarkerSymType::NONE;

bolt/lib/Core/BinaryData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ bool BinaryData::hasNameRegex(StringRef NameRegex) const {
6565

6666
bool BinaryData::nameStartsWith(StringRef Prefix) const {
6767
for (const MCSymbol *Symbol : Symbols)
68-
if (Symbol->getName().startswith(Prefix))
68+
if (Symbol->getName().starts_with(Prefix))
6969
return true;
7070
return false;
7171
}

bolt/lib/Passes/IndirectCallPromotion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ IndirectCallPromotion::maybeGetHotJumpTableTargets(BinaryBasicBlock &BB,
460460

461461
if (AccessInfo.MemoryObject) {
462462
// Deal with bad/stale data
463-
if (!AccessInfo.MemoryObject->getName().startswith(
463+
if (!AccessInfo.MemoryObject->getName().starts_with(
464464
"JUMP_TABLE/" + Function.getOneName().str()))
465465
return JumpTableInfoType();
466466
Index =

bolt/lib/Passes/ReorderData.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,14 +408,14 @@ bool ReorderData::markUnmoveableSymbols(BinaryContext &BC,
408408
// suffix in another.
409409
auto isPrivate = [&](const BinaryData *BD) {
410410
auto Prefix = std::string("PG") + BC.AsmInfo->getPrivateGlobalPrefix();
411-
return BD->getName().startswith(Prefix.str());
411+
return BD->getName().starts_with(Prefix.str());
412412
};
413413
auto Range = BC.getBinaryDataForSection(Section);
414414
bool FoundUnmoveable = false;
415415
for (auto Itr = Range.begin(); Itr != Range.end(); ++Itr) {
416416
BinaryData *Next =
417417
std::next(Itr) != Range.end() ? std::next(Itr)->second : nullptr;
418-
if (Itr->second->getName().startswith("PG.")) {
418+
if (Itr->second->getName().starts_with("PG.")) {
419419
BinaryData *Prev =
420420
Itr != Range.begin() ? std::prev(Itr)->second : nullptr;
421421
bool PrevIsPrivate = Prev && isPrivate(Prev);

bolt/lib/Passes/ShrinkWrapping.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,12 +1416,12 @@ bool ShrinkWrapping::foldIdenticalSplitEdges() {
14161416
bool Changed = false;
14171417
for (auto Iter = BF.begin(); Iter != BF.end(); ++Iter) {
14181418
BinaryBasicBlock &BB = *Iter;
1419-
if (!BB.getName().startswith(".LSplitEdge"))
1419+
if (!BB.getName().starts_with(".LSplitEdge"))
14201420
continue;
14211421
for (BinaryBasicBlock &RBB : llvm::reverse(BF)) {
14221422
if (&RBB == &BB)
14231423
break;
1424-
if (!RBB.getName().startswith(".LSplitEdge") || !RBB.isValid() ||
1424+
if (!RBB.getName().starts_with(".LSplitEdge") || !RBB.isValid() ||
14251425
!isIdenticalSplitEdgeBB(BC, *Iter, RBB))
14261426
continue;
14271427
assert(RBB.pred_size() == 1 && "Invalid split edge BB");

bolt/lib/Profile/DataAggregator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,7 @@ DataAggregator::parseMMapEvent() {
19151915
// PERF_RECORD_MMAP2 <pid>/<tid>: [<hexbase>(<hexsize>) .*]: .* <file_name>
19161916

19171917
StringRef FileName = Line.rsplit(FieldSeparator).second;
1918-
if (FileName.startswith("//") || FileName.startswith("[")) {
1918+
if (FileName.starts_with("//") || FileName.starts_with("[")) {
19191919
consumeRestOfLine();
19201920
return std::make_pair(StringRef(), ParsedInfo);
19211921
}
@@ -2168,7 +2168,7 @@ DataAggregator::getFileNameForBuildID(StringRef FileBuildID) {
21682168
continue;
21692169
}
21702170

2171-
if (IDPair->second.startswith(FileBuildID)) {
2171+
if (IDPair->second.starts_with(FileBuildID)) {
21722172
FileName = sys::path::filename(IDPair->first);
21732173
break;
21742174
}

bolt/lib/Profile/DataReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ bool hasVolatileName(const BinaryFunction &BF) {
5555
/// Return standard escaped name of the function possibly renamed by BOLT.
5656
std::string normalizeName(StringRef NameRef) {
5757
// Strip "PG." prefix used for globalized locals.
58-
NameRef = NameRef.startswith("PG.") ? NameRef.substr(2) : NameRef;
58+
NameRef = NameRef.starts_with("PG.") ? NameRef.substr(2) : NameRef;
5959
return getEscapedName(NameRef);
6060
}
6161

bolt/lib/Profile/YAMLProfileReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace bolt {
3939
bool YAMLProfileReader::isYAML(const StringRef Filename) {
4040
if (auto MB = MemoryBuffer::getFileOrSTDIN(Filename)) {
4141
StringRef Buffer = (*MB)->getBuffer();
42-
return Buffer.startswith("---\n");
42+
return Buffer.starts_with("---\n");
4343
} else {
4444
report_error(Filename, MB.getError());
4545
}

bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void ExecutableFileMemoryManager::updateSection(
120120
}
121121

122122
if (!IsCode && (SectionName == ".strtab" || SectionName == ".symtab" ||
123-
SectionName == "" || SectionName.startswith(".rela.")))
123+
SectionName == "" || SectionName.starts_with(".rela.")))
124124
return;
125125

126126
SmallVector<char, 256> Buf;
@@ -139,7 +139,7 @@ void ExecutableFileMemoryManager::updateSection(
139139
}
140140

141141
BinarySection *Section = nullptr;
142-
if (!OrgSecPrefix.empty() && SectionName.startswith(OrgSecPrefix)) {
142+
if (!OrgSecPrefix.empty() && SectionName.starts_with(OrgSecPrefix)) {
143143
// Update the original section contents.
144144
ErrorOr<BinarySection &> OrgSection =
145145
BC.getUniqueSectionByName(SectionName.substr(OrgSecPrefix.length()));

bolt/lib/Rewrite/RewriteInstance.cpp

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ Error RewriteInstance::discoverStorage() {
538538

539539
if (!opts::HeatmapMode &&
540540
!(opts::AggregateOnly && BAT->enabledFor(InputFile)) &&
541-
(SectionName.startswith(getOrgSecPrefix()) ||
541+
(SectionName.starts_with(getOrgSecPrefix()) ||
542542
SectionName == getBOLTTextSectionName()))
543543
return createStringError(
544544
errc::function_not_supported,
@@ -778,12 +778,12 @@ void RewriteInstance::discoverFileObjects() {
778778
std::unordered_map<SymbolRef, StringRef, SymbolRefHash> SymbolToFileName;
779779
for (const ELFSymbolRef &Symbol : InputFile->symbols()) {
780780
Expected<StringRef> NameOrError = Symbol.getName();
781-
if (NameOrError && NameOrError->startswith("__asan_init")) {
781+
if (NameOrError && NameOrError->starts_with("__asan_init")) {
782782
errs() << "BOLT-ERROR: input file was compiled or linked with sanitizer "
783783
"support. Cannot optimize.\n";
784784
exit(1);
785785
}
786-
if (NameOrError && NameOrError->startswith("__llvm_coverage_mapping")) {
786+
if (NameOrError && NameOrError->starts_with("__llvm_coverage_mapping")) {
787787
errs() << "BOLT-ERROR: input file was compiled or linked with coverage "
788788
"support. Cannot optimize.\n";
789789
exit(1);
@@ -938,9 +938,10 @@ void RewriteInstance::discoverFileObjects() {
938938
/// It is possible we are seeing a globalized local. LLVM might treat it as
939939
/// a local if it has a "private global" prefix, e.g. ".L". Thus we have to
940940
/// change the prefix to enforce global scope of the symbol.
941-
std::string Name = SymName.startswith(BC->AsmInfo->getPrivateGlobalPrefix())
942-
? "PG" + std::string(SymName)
943-
: std::string(SymName);
941+
std::string Name =
942+
SymName.starts_with(BC->AsmInfo->getPrivateGlobalPrefix())
943+
? "PG" + std::string(SymName)
944+
: std::string(SymName);
944945

945946
// Disambiguate all local symbols before adding to symbol table.
946947
// Since we don't know if we will see a global with the same name,
@@ -2723,8 +2724,8 @@ void RewriteInstance::handleRelocation(const SectionRef &RelocatedSection,
27232724
BD->nameStartsWith(SymbolName) ||
27242725
BD->nameStartsWith("PG" + SymbolName) ||
27252726
(BD->nameStartsWith("ANONYMOUS") &&
2726-
(BD->getSectionName().startswith(".plt") ||
2727-
BD->getSectionName().endswith(".plt")))) &&
2727+
(BD->getSectionName().starts_with(".plt") ||
2728+
BD->getSectionName().ends_with(".plt")))) &&
27282729
"BOLT symbol names of all non-section relocations must match up "
27292730
"with symbol names referenced in the relocation");
27302731

@@ -2740,7 +2741,7 @@ void RewriteInstance::handleRelocation(const SectionRef &RelocatedSection,
27402741
// in relocation sections can get through here too, from .plt.
27412742
assert(
27422743
(IsAArch64 || BC->isRISCV() || IsSectionRelocation ||
2743-
BC->getSectionNameForAddress(SymbolAddress)->startswith(".plt")) &&
2744+
BC->getSectionNameForAddress(SymbolAddress)->starts_with(".plt")) &&
27442745
"known symbols should not resolve to anonymous locals");
27452746

27462747
if (IsSectionRelocation) {
@@ -2757,7 +2758,7 @@ void RewriteInstance::handleRelocation(const SectionRef &RelocatedSection,
27572758
Name = SymbolName;
27582759
} else {
27592760
if (StringRef(SymbolName)
2760-
.startswith(BC->AsmInfo->getPrivateGlobalPrefix()))
2761+
.starts_with(BC->AsmInfo->getPrivateGlobalPrefix()))
27612762
Name = NR.uniquify("PG" + SymbolName);
27622763
else
27632764
Name = NR.uniquify(SymbolName);
@@ -3464,8 +3465,8 @@ std::vector<BinarySection *> RewriteInstance::getCodeSections() {
34643465
// ".text.cold.T", ".text.cold.T-1", ... ".text.cold.1", ".text.cold"
34653466
// - if opts::HotFunctionsAtEnd is false, we want order
34663467
// ".text.cold", ".text.cold.1", ... ".text.cold.T-1", ".text.cold.T"
3467-
if (A->getName().startswith(BC->getColdCodeSectionName()) &&
3468-
B->getName().startswith(BC->getColdCodeSectionName())) {
3468+
if (A->getName().starts_with(BC->getColdCodeSectionName()) &&
3469+
B->getName().starts_with(BC->getColdCodeSectionName())) {
34693470
if (A->getName().size() != B->getName().size())
34703471
return (opts::HotFunctionsAtEnd)
34713472
? (A->getName().size() > B->getName().size())
@@ -5653,16 +5654,16 @@ bool RewriteInstance::willOverwriteSection(StringRef SectionName) {
56535654
}
56545655

56555656
bool RewriteInstance::isDebugSection(StringRef SectionName) {
5656-
if (SectionName.startswith(".debug_") || SectionName.startswith(".zdebug_") ||
5657-
SectionName == ".gdb_index" || SectionName == ".stab" ||
5658-
SectionName == ".stabstr")
5657+
if (SectionName.starts_with(".debug_") ||
5658+
SectionName.starts_with(".zdebug_") || SectionName == ".gdb_index" ||
5659+
SectionName == ".stab" || SectionName == ".stabstr")
56595660
return true;
56605661

56615662
return false;
56625663
}
56635664

56645665
bool RewriteInstance::isKSymtabSection(StringRef SectionName) {
5665-
if (SectionName.startswith("__ksymtab"))
5666+
if (SectionName.starts_with("__ksymtab"))
56665667
return true;
56675668

56685669
return false;

bolt/test/X86/dwarf-test-df-logging.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
; RUN: -split-dwarf-file=main.dwo -o main.o
77
; RUN: llvm-mc -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf4-df-dualcu-helper.s \
88
; RUN: -split-dwarf-file=helper.dwo -o helper.o
9-
; RUN: %clang %cflags -gdwarf-5 -gsplit-dwarf=split main.o helper.o -o main.exe
9+
; RUN: %clang %cflags -gdwarf-5 -gsplit-dwarf=split main.o helper.o -o main.exe -fno-pic -no-pie
1010
; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections | FileCheck -check-prefix=BOLT %s
1111

1212
; BOLT: BOLT-INFO: processing split DWARF

bolt/test/X86/dwarf4-df-dualcu.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
; RUN: -split-dwarf-file=main.dwo -o main.o
66
; RUN: llvm-mc -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf4-df-dualcu-helper.s \
77
; RUN: -split-dwarf-file=helper.dwo -o helper.o
8-
; RUN: %clang %cflags -gdwarf-5 -gsplit-dwarf=split main.o helper.o -o main.exe
8+
; RUN: %clang %cflags -gdwarf-5 -gsplit-dwarf=split main.o helper.o -o main.exe -fno-pic -no-pie
99
; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections --always-convert-to-ranges
1010
; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.exe | FileCheck -check-prefix=PRE-BOLT %s
1111
; RUN: llvm-dwarfdump --show-form --verbose --debug-ranges main.exe.bolt &> %t/foo.txt

bolt/test/X86/dwarf4-split-dwarf-no-address.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
; RUN: --filetype=obj %p/Inputs/dwarf4-split-dwarf-no-address-main.s -o=main.o
66
; RUN: llvm-mc --split-dwarf-file=helper.dwo --triple=x86_64-unknown-linux-gnu \
77
; RUN: --filetype=obj %p/Inputs/dwarf4-split-dwarf-no-address-helper.s -o=helper.o
8-
; RUN: %clang %cflags -gdwarf-4 -gsplit-dwarf=split main.o helper.o -o main.exe
8+
; RUN: %clang %cflags -gdwarf-4 -gsplit-dwarf=split main.o helper.o -o main.exe -fno-pic -no-pie
99
; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections
1010
; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.exe.bolt | FileCheck -check-prefix=BOLT %s
1111

bolt/test/X86/dwarf5-df-dualcu.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
; RUN: -split-dwarf-file=main.dwo -o main.o
66
; RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-df-dualcu-helper.s \
77
; RUN: -split-dwarf-file=helper.dwo -o helper.o
8-
; RUN: %clang %cflags -gdwarf-5 -gsplit-dwarf=split main.o helper.o -o main.exe
8+
; RUN: %clang %cflags -gdwarf-5 -gsplit-dwarf=split main.o helper.o -o main.exe -fno-pic -no-pie
99
; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections --always-convert-to-ranges
1010
; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.exe | FileCheck -check-prefix=PRE-BOLT %s
1111
; RUN: llvm-dwarfdump --show-form --verbose --debug-addr main.exe.bolt &> %t/foo.txt

0 commit comments

Comments
 (0)