[all-commits] [llvm/llvm-project] 10bc12: [XRay] Change Sled.Function to PC-relative for sle...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Apr 24 14:42:40 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 10bc12588dac532fad044b2851dde8e7b9121e88
      https://github.com/llvm/llvm-project/commit/10bc12588dac532fad044b2851dde8e7b9121e88
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-04-24 (Fri, 24 Apr 2020)

  Changed paths:
    M compiler-rt/lib/xray/xray_interface.cpp
    M compiler-rt/lib/xray/xray_interface_internal.h
    M llvm/include/llvm/CodeGen/AsmPrinter.h
    M llvm/include/llvm/XRay/InstrumentationMap.h
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/XRay/InstrumentationMap.cpp
    M llvm/test/CodeGen/Mips/xray-mips-attribute-instrumentation.ll
    M llvm/test/CodeGen/PowerPC/xray-attribute-instrumentation.ll
    M llvm/test/CodeGen/X86/xray-log-args.ll
    M llvm/tools/llvm-xray/xray-extract.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list