]> granicus.if.org Git - llvm/commit
[XRay][CodeGen] Use PIC-friendly code in XRay sleds and remove synthetic references...
authorDean Michael Berris <dberris@google.com>
Mon, 4 Sep 2017 05:34:58 +0000 (05:34 +0000)
committerDean Michael Berris <dberris@google.com>
Mon, 4 Sep 2017 05:34:58 +0000 (05:34 +0000)
commitcfbb872e5e27d6cd1ccb51cb1a170210427c76b0
tree1cdda668382a5b88cba98ac05112a5b3c34d9da2
parent911f6bba338239f181e726aa5493e68ffa2a88d0
[XRay][CodeGen] Use PIC-friendly code in XRay sleds and remove synthetic references in .text

Summary:
This is a re-roll of D36615 which uses PLT relocations in the back-end
to the call to __xray_CustomEvent() when building in -fPIC and
-fxray-instrument mode.

Reviewers: pcc, djasper, bkramer

Subscribers: sdardis, javed.absar, llvm-commits

Differential Revision: https://reviews.llvm.org/D37373

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312466 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
include/llvm/CodeGen/AsmPrinter.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/Target/X86/X86MCInstLower.cpp
test/CodeGen/AArch64/xray-attribute-instrumentation.ll
test/CodeGen/AArch64/xray-tail-call-sled.ll
test/CodeGen/ARM/xray-armv6-attribute-instrumentation.ll
test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll
test/CodeGen/Mips/xray-section-group.ll
test/CodeGen/X86/xray-attribute-instrumentation.ll
test/CodeGen/X86/xray-custom-log.ll
test/CodeGen/X86/xray-log-args.ll
test/CodeGen/X86/xray-loop-detection.ll
test/CodeGen/X86/xray-section-group.ll
test/CodeGen/X86/xray-tail-call-sled.ll