[clang] [llvm] [ThinLTO] Support dead RTTI data elimination under -fno-split-lto-unit (PR #126336)
Mingming Liu via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 12 15:55:00 PST 2025
================
@@ -0,0 +1,20 @@
+; RUN: llvm-as %s -o - | llvm-dis -o %t.ll
+; RUN: grep "^\^" %s >%t2
+; RUN: grep "^\^" %t.ll >%t3
+; Expect that the summary information is the same after round-trip through
+; llvm-as and llvm-dis.
+; RUN: diff -b %t2 %t3
+
+target triple = "aarch64-unknown-linux-gnu"
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
+ at _ZTSxxx = external global ptr
----------------
mingmingl-llvm wrote:
> Do you mean this file [rtti-clean.ll](https://github.com/llvm/llvm-project/pull/126336/files#diff-0dda4fea885085968d9d6996f5383c9a6dbd40b040941ecd507d0f7086399fe9)?
Yes, `rtti-clean.ll` is a good place to have test coverage for local-linkage vtables.
https://github.com/llvm/llvm-project/pull/126336
More information about the cfe-commits
mailing list