[XRay] Change Sled.Function to PC-relative for sled version 2 and make llvm-xray...
authorFangrui Song <maskray@google.com>
Fri, 24 Apr 2020 20:39:02 +0000 (13:39 -0700)
committerFangrui Song <maskray@google.com>
Fri, 24 Apr 2020 21:41:56 +0000 (14:41 -0700)
commit10bc12588dac532fad044b2851dde8e7b9121e88
tree2ca974450fa116f542d2d298e598b806d7d56006
parentfc0262419a8647c44fe8712ee8e2d4de077f2bde
[XRay] Change Sled.Function to PC-relative for sled version 2 and make llvm-xray support sled version 2 addresses

Follow-up of D78082 and D78590.

Otherwise, because xray_instr_map is now read-only, the absolute
relocation used for Sled.Function will cause a text relocation.
compiler-rt/lib/xray/xray_interface.cpp
compiler-rt/lib/xray/xray_interface_internal.h
llvm/include/llvm/CodeGen/AsmPrinter.h
llvm/include/llvm/XRay/InstrumentationMap.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/XRay/InstrumentationMap.cpp
llvm/test/CodeGen/Mips/xray-mips-attribute-instrumentation.ll
llvm/test/CodeGen/PowerPC/xray-attribute-instrumentation.ll
llvm/test/CodeGen/X86/xray-log-args.ll
llvm/tools/llvm-xray/xray-extract.cpp