[compiler-rt] r311145 - [XRay][compiler-rt][NFC] Expand the PIC test case for XRay
Dean Michael Berris via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 17 22:24:32 PDT 2017
Author: dberris
Date: Thu Aug 17 22:24:32 2017
New Revision: 311145
URL: http://llvm.org/viewvc/llvm-project?rev=311145&view=rev
Log:
[XRay][compiler-rt][NFC] Expand the PIC test case for XRay
Summary:
Here we add a build with -ffunction-sections -fdata-sections and
-Wl,--gc-sections to ensure that we're still able to generate XRay
traces.
This is just adding a test, no functional changes.
Differential Revision: https://reviews.llvm.org/D36863
Modified:
compiler-rt/trunk/test/xray/TestCases/Linux/pic_test.cc
Modified: compiler-rt/trunk/test/xray/TestCases/Linux/pic_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/xray/TestCases/Linux/pic_test.cc?rev=311145&r1=311144&r2=311145&view=diff
==============================================================================
--- compiler-rt/trunk/test/xray/TestCases/Linux/pic_test.cc (original)
+++ compiler-rt/trunk/test/xray/TestCases/Linux/pic_test.cc Thu Aug 17 22:24:32 2017
@@ -1,6 +1,7 @@
// Test to check if we handle pic code properly.
-// RUN: %clangxx_xray -fxray-instrument -std=c++11 -fpic %s -o %t
+// RUN: %clangxx_xray -fxray-instrument -std=c++11 -ffunction-sections \
+// RUN: -fdata-sections -fpic -fpie -Wl,--gc-sections %s -o %t
// RUN: XRAY_OPTIONS="patch_premain=true verbosity=1 xray_logfile_base=pic-test-logging-" %run %t 2>&1 | FileCheck %s
// After all that, clean up the output xray log.
//
More information about the llvm-commits
mailing list