]> granicus.if.org Git - llvm/commit
[AsmPrinter] Delete redundant .type foo, @function when emitting an ifunc
authorFangrui Song <maskray@google.com>
Wed, 14 Aug 2019 10:30:27 +0000 (10:30 +0000)
committerFangrui Song <maskray@google.com>
Wed, 14 Aug 2019 10:30:27 +0000 (10:30 +0000)
commitb8446d6590ac1b2afbcb9eb05f59df977638f364
tree71692700f6631aab4eb8718ce060959e22de7909
parent29e1b86c43ff6a229543d2898859790bd566cbaf
[AsmPrinter] Delete redundant .type foo, @function when emitting an ifunc

In MCAsmStreamer:

.type foo,@function   # <--- this is redundant
.type foo,@gnu_indirect_function

In MCELFStreamer, the latter STT_GNU_IFUNC overrides STT_FUNC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368823 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
test/CodeGen/X86/ifunc-asm.ll