summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2017-02-01 22:45:09 +0000
committerDehao Chen <dehao@google.com>2017-02-01 22:45:09 +0000
commit0944a8c2ec4b7049403855c4195ccd541098c29d (patch)
tree8332166417f6c7689353dff3017fe5668afc1af2 /llvm/test/Bitcode
parentdb00b61860b30203428cee0cda9f45f55ee280c3 (diff)
downloadbcm5719-llvm-0944a8c2ec4b7049403855c4195ccd541098c29d.tar.gz
bcm5719-llvm-0944a8c2ec4b7049403855c4195ccd541098c29d.zip
Change debug-info-for-profiling from a TargetOption to a function attribute.
Summary: LTO requires the debug-info-for-profiling to be a function attribute. Reviewers: echristo, mehdi_amini, dblaikie, probinson, aprantl Reviewed By: mehdi_amini, dblaikie, aprantl Subscribers: aprantl, probinson, ahatanak, llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D29203 llvm-svn: 293833
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/upgrade-debug-info-for-profiling.ll10
-rw-r--r--llvm/test/Bitcode/upgrade-debug-info-for-profiling.ll.bcbin0 -> 888 bytes
2 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/upgrade-debug-info-for-profiling.ll b/llvm/test/Bitcode/upgrade-debug-info-for-profiling.ll
new file mode 100644
index 00000000000..d50f87fa620
--- /dev/null
+++ b/llvm/test/Bitcode/upgrade-debug-info-for-profiling.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-dis < %s.bc | FileCheck %s
+; RUN: verify-uselistorder < %s.bc
+
+!llvm.module.flags = !{!0}
+!0 = !{i32 2, !"Debug Info Version", i32 3}
+
+!llvm.dbg.cu = !{!1}
+; CHECK: DICompileUnit(language: DW_LANG_C99, file: !{{[0-9]+}}, isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
+!1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, emissionKind: FullDebug)
+!2 = !DIFile(filename: "foo.c", directory: "/path/to/dir")
diff --git a/llvm/test/Bitcode/upgrade-debug-info-for-profiling.ll.bc b/llvm/test/Bitcode/upgrade-debug-info-for-profiling.ll.bc
new file mode 100644
index 00000000000..2bb54e9b3c5
--- /dev/null
+++ b/llvm/test/Bitcode/upgrade-debug-info-for-profiling.ll.bc
Binary files differ
OpenPOWER on IntegriCloud