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 --- .../thinlto-function-summary-originalnames.ll | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 test/Bitcode/thinlto-function-summary-originalnames.ll (limited to 'test/Bitcode/thinlto-function-summary-originalnames.ll') diff --git a/test/Bitcode/thinlto-function-summary-originalnames.ll b/test/Bitcode/thinlto-function-summary-originalnames.ll new file mode 100644 index 000000000000..8777bd916076 --- /dev/null +++ b/test/Bitcode/thinlto-function-summary-originalnames.ll @@ -0,0 +1,32 @@ +; Test to check the callgraph in summary +; RUN: opt -module-summary %s -o %t.o +; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %t.o +; RUN: llvm-bcanalyzer -dump %t.index.bc | FileCheck %s --check-prefix=COMBINED + +; COMBINED: +; COMBINED-DAG: +; COMBINED-DAG: +; COMBINED-NEXT: +; COMBINED-NEXT: +; COMBINED-NEXT: +; COMBINED-NEXT: +; COMBINED-NEXT: + +source_filename = "/path/to/source.c" + +; ModuleID = 'thinlto-function-summary-callgraph.ll' +target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" +target triple = "x86_64-unknown-linux-gnu" + +@bar = internal global i32 0 +@fooalias = internal alias void (...), bitcast (void ()* @foo to void (...)*) + +define internal void @foo() { + ret void +} -- cgit v1.3