Fix the EmitBackendOutput test in debian/qualify-clang.sh

This commit is contained in:
Sylvestre Ledru 2023-12-06 15:10:01 +01:00
parent ee43996aae
commit 55b75cf44f
2 changed files with 5 additions and 2 deletions

3
debian/changelog vendored
View File

@ -20,8 +20,9 @@ llvm-toolchain-17 (1:17.0.6-2) UNRELEASED; urgency=medium
* Move the symlink /usr/lib/*/libc++experimental.a from libc++abi-17-dev
to libc++-17-dev
* Remove some old break/replaces from 16
* Fix the EmitBackendOutput test in debian/qualify-clang.sh
-- Sylvestre Ledru <sylvestre@debian.org> Wed, 06 Dec 2023 11:19:17 +0100
-- Sylvestre Ledru <sylvestre@debian.org> Wed, 06 Dec 2023 15:09:55 +0100
llvm-toolchain-17 (1:17.0.6-1) unstable; urgency=medium

View File

@ -1376,6 +1376,7 @@ clang++-$VERSION -O2 -fprofile-instr-use=foo.profdata foo.cc -o foo
# https://bugs.llvm.org/show_bug.cgi?id=44870
cat <<EOF > foo.cpp
#include <clang/CodeGen/BackendUtil.h>
#include <llvm/Support/VirtualFileSystem.h>
using namespace clang;
@ -1389,8 +1390,9 @@ int main() {
llvm::Module* m;
BackendAction* action;
std::unique_ptr<raw_pwrite_stream> AsmOutStream;
IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS;
EmitBackendOutput(*diags, *hsOpts, *cgOpts, *tOpts, *lOpts, *tDesc, m, *action, std::move(AsmOutStream));
EmitBackendOutput(*diags, *hsOpts, *cgOpts, *tOpts, *lOpts, *tDesc, m, *action, VFS, std::move(AsmOutStream));
}
EOF
clang++-$VERSION foo.cpp -o test -lclangBasic -lclangCodeGen -lclangDriver -lclangFrontend -lclangFrontendTool -lclangCodeGen -lclangRewriteFrontend -lclangARCMigrate -lclangStaticAnalyzerFrontend -lclangStaticAnalyzerCheckers -lclangStaticAnalyzerCore -lclangCrossTU -lclangIndex -lclangFrontend -lclangDriver -lclangParse -lclangSerialization -lclangSema -lclangAnalysis -lclangEdit -lclangFormat -lclangToolingInclusions -lclangToolingCore -lclangRewrite -lclangASTMatchers -lclangAST -lclangLex -lclangBasic -ldl /usr/lib/llvm-$VERSION/lib/libLLVM-$VERSION.so -lclangCodeGen -lclangDriver -lclangFrontend -lclangFrontendTool -lclangRewriteFrontend -lclangARCMigrate -lclangStaticAnalyzerFrontend -lclangStaticAnalyzerCheckers -lclangStaticAnalyzerCore -lclangCrossTU -lclangIndex -lclangParse -lclangSerialization -lclangSema -lclangAnalysis -lclangEdit -lclangFormat -lclangToolingInclusions -lclangToolingCore -lclangRewrite -lclangASTMatchers -lclangAST -lclangLex -ldl -I /usr/lib/llvm-$VERSION/include/ -L/usr/lib/llvm-$VERSION/lib/ -lPolly -lPollyISL