Skip to content

Commit 54771b0

Browse files
committed
Merge remote-tracking branch 'origin/release/16.x' into openbsd-release/16.x
2 parents 3d64f1e + 7cbf1a2 commit 54771b0

File tree

7 files changed

+19
-12
lines changed

7 files changed

+19
-12
lines changed

libcxx/include/__config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
// _LIBCPP_VERSION represents the version of libc++, which matches the version of LLVM.
3939
// Given a LLVM release LLVM XX.YY.ZZ (e.g. LLVM 16.0.1 == 16.00.01), _LIBCPP_VERSION is
4040
// defined to XXYYZZ.
41-
# define _LIBCPP_VERSION 160005
41+
# define _LIBCPP_VERSION 160006
4242

4343
# define _LIBCPP_CONCAT_IMPL(_X, _Y) _X##_Y
4444
# define _LIBCPP_CONCAT(_X, _Y) _LIBCPP_CONCAT_IMPL(_X, _Y)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# ensures that we test parsing of stub libraries that contain
2+
# windows line endings
3+
libstub.so text eol=crlf

lld/wasm/Driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ void LinkerDriver::addFile(StringRef path) {
281281
files.push_back(createObjectFile(mbref));
282282
break;
283283
case file_magic::unknown:
284-
if (mbref.getBuffer().starts_with("#STUB\n")) {
284+
if (mbref.getBuffer().starts_with("#STUB")) {
285285
files.push_back(make<StubFile>(mbref));
286286
break;
287287
}

lld/wasm/InputFiles.cpp

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -691,12 +691,16 @@ StringRef strip(StringRef s) {
691691
}
692692

693693
void StubFile::parse() {
694-
bool first = false;
694+
bool first = true;
695+
696+
SmallVector<StringRef> lines;
697+
mb.getBuffer().split(lines, '\n');
698+
for (StringRef line : lines) {
699+
line = line.trim();
695700

696-
for (StringRef line : args::getLines(mb)) {
697701
// File must begin with #STUB
698702
if (first) {
699-
assert(line == "#STUB\n");
703+
assert(line == "#STUB");
700704
first = false;
701705
}
702706

@@ -713,10 +717,10 @@ void StubFile::parse() {
713717
symbolDependencies[sym] = {};
714718

715719
while (rest.size()) {
716-
StringRef first;
717-
std::tie(first, rest) = rest.split(',');
718-
first = strip(first);
719-
symbolDependencies[sym].push_back(first);
720+
StringRef dep;
721+
std::tie(dep, rest) = rest.split(',');
722+
dep = strip(dep);
723+
symbolDependencies[sym].push_back(dep);
720724
}
721725
}
722726
}

llvm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if(NOT DEFINED LLVM_VERSION_MINOR)
2222
set(LLVM_VERSION_MINOR 0)
2323
endif()
2424
if(NOT DEFINED LLVM_VERSION_PATCH)
25-
set(LLVM_VERSION_PATCH 5)
25+
set(LLVM_VERSION_PATCH 6)
2626
endif()
2727
if(NOT DEFINED LLVM_VERSION_SUFFIX)
2828
set(LLVM_VERSION_SUFFIX)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
llvm_version_major = 16
22
llvm_version_minor = 0
3-
llvm_version_patch = 5
3+
llvm_version_patch = 6
44
llvm_version = "$llvm_version_major.$llvm_version_minor.$llvm_version_patch"

llvm/utils/lit/lit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
__author__ = 'Daniel Dunbar'
44
__email__ = '[email protected]'
5-
__versioninfo__ = (16, 0, 5)
5+
__versioninfo__ = (16, 0, 6)
66
__version__ = '.'.join(str(v) for v in __versioninfo__) + 'dev'
77

88
__all__ = []

0 commit comments

Comments
 (0)