[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / Inputs / update_memprof_inputs.sh
blob1d51419ed1e7fb26a7ed5c6487a87130f503c3b5
1 #!/bin/bash
3 if [ -z $1 ]; then
4 echo "Path to clang required!"
5 echo "Usage: update_memprof_inputs.sh /path/to/updated/clang"
6 exit 1
7 else
8 CLANG=$1
9 fi
11 # Allows the script to be invoked from other directories.
12 OUTDIR=$(dirname $(realpath -s $0))
14 DEFAULT_MEMPROF_FLAGS="-fuse-ld=lld -Wl,--no-rosegment -gmlt -fdebug-info-for-profiling -fmemory-profile -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -m64 -Wl,-build-id -no-pie"
16 ${CLANG} ${DEFAULT_MEMPROF_FLAGS} ${OUTDIR}/../memprof.cpp -o ${OUTDIR}/memprof.exe
17 env MEMPROF_OPTIONS=log_path=stdout ${OUTDIR}/memprof.exe > ${OUTDIR}/memprof.memprofraw