From 01095a5d43bbfde13731688ddcf6048ebb8b7721 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 23 Jul 2016 20:41:05 +0000 Subject: Vendor import of llvm release_39 branch r276489: https://llvm.org/svn/llvm-project/llvm/branches/release_39@276489 --- test/Bitcode/thinlto-function-summary.ll | 33 ++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) (limited to 'test/Bitcode/thinlto-function-summary.ll') diff --git a/test/Bitcode/thinlto-function-summary.ll b/test/Bitcode/thinlto-function-summary.ll index 9c2f2acd6c7a..f3fb6c4f0105 100644 --- a/test/Bitcode/thinlto-function-summary.ll +++ b/test/Bitcode/thinlto-function-summary.ll @@ -1,13 +1,23 @@ -; RUN: llvm-as -function-summary < %s | llvm-bcanalyzer -dump | FileCheck %s -check-prefix=BC -; Check for function summary block/records. - -; BC: record string = 'anon. +; BC-NEXT: record string = 'foo' +; BC-NEXT: record string = 'bar' +; BC-NEXT: record string = 'f' + +; RUN: opt -name-anon-functions -module-summary < %s | llvm-dis | FileCheck %s ; Check that this round-trips correctly. ; ModuleID = '' @@ -30,6 +40,9 @@ entry: ret i32 %x } +; FIXME: Anonymous function and alias not currently in summary until +; follow on fixes to rename anonymous functions and emit alias summary +; entries are committed. ; Check an anonymous function as well, since in that case only the alias ; ends up in the value symbol table and having a summary. @f = alias void (), void ()* @0 ; [#uses=0] -- cgit v1.3