[compiler-rt] [clang-tools-extra] [llvm] [clang] [PGO][GlobalValue][LTO]In GlobalValues::getGlobalIdentifier, use semicolon as delimiter for local-linkage varibles. (PR #74008)

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 10 20:04:14 PST 2023


================
@@ -0,0 +1,60 @@
+#!/bin/bash
+
+if [ $# -lt 1 ]; then
+  echo "Path to clang required!"
+  echo "Usage: update_thinlto_indirect_call_promotion_inputs.sh /path/to/updated/clang"
+  exit 1
+else
+  CLANG=$1
+fi
+
+# Allows the script to be invoked from other directories.
+OUTDIR=$(dirname $(realpath -s $0))
----------------
minglotus-6 wrote:

Using `trap` on EXIT is indeed a more reliable way to clean up, thanks for pointing this out!

Now the test uses `rm -rf %t && split-file %s %t` as suggested in another comment.

https://github.com/llvm/llvm-project/pull/74008


More information about the llvm-commits mailing list