[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)
commit8caa0aaa4dcdd3e68c260c75abfad52519d70753
tree3fc3afda079eb4e863457bd60a3cb527d9bd266d
parent15e26d1fe945eda5de84ab9b90bc63f2945ba9cc
[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.

llvm-svn: 368823
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/test/CodeGen/X86/ifunc-asm.ll