From 34ab474348e2623cc67abddb7bb662385297ac65 Mon Sep 17 00:00:00 2001 From: Alexander Shaposhnikov Date: Fri, 18 Nov 2022 04:26:08 +0000 Subject: [opt][clang] Enable using -module-summary/-flto=thin with -S/-emit-llvm Enable using -module-summary with -S (similarly to what currently can be achieved with opt -o - | llvm-dis). This is a recommit of ef9e62469. Test plan: ninja check-all Differential revision: https://reviews.llvm.org/D137768 --- llvm/test/Bitcode/thinlto-function-summary.ll | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/test/Bitcode/thinlto-function-summary.ll') diff --git a/llvm/test/Bitcode/thinlto-function-summary.ll b/llvm/test/Bitcode/thinlto-function-summary.ll index ad745dd826ac..68636ed192a1 100644 --- a/llvm/test/Bitcode/thinlto-function-summary.ll +++ b/llvm/test/Bitcode/thinlto-function-summary.ll @@ -31,6 +31,8 @@ ; RUN: opt -passes=name-anon-globals -module-summary < %s | llvm-dis | FileCheck %s +; RUN: opt -passes=name-anon-globals -module-summary -S < %s | FileCheck %s +; RUN: opt -passes=name-anon-globals -module-summary -S < %s | llvm-as | llvm-dis | FileCheck %s ; Check that this round-trips correctly. ; ModuleID = '' -- cgit v1.2.3