]> granicus.if.org Git - llvm/commit
Add support for handling ifuncs to GlobalValue::getBaseObject
authorTeresa Johnson <tejohnson@google.com>
Mon, 15 May 2017 18:28:29 +0000 (18:28 +0000)
committerTeresa Johnson <tejohnson@google.com>
Mon, 15 May 2017 18:28:29 +0000 (18:28 +0000)
commit34e726e44a08d669d7dc110dc709bf99d61cead4
treedb30fa483939287ea67119f74b6adbe6344dc908
parent6a2b505bf942f940eebecfee310ada479e3f5e6a
Add support for handling ifuncs to GlobalValue::getBaseObject

Summary:
All GlobalIndirectSymbol types (not just GlobalAlias) should return
their base object.

Without this patch LTO would warn "Unable to determine comdat of
alias!" for an ifunc.

Reviewers: pcc

Subscribers: mehdi_amini, inglorion, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303096 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Globals.cpp
test/LTO/Resolution/X86/ifunc.ll [new file with mode: 0644]
test/Object/X86/nm-ir.ll