[PATCH] D17854: add .alt_entry assembly directive for Mach-O
Bob Wilson via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 3 09:38:23 PST 2016
bob.wilson created this revision.
bob.wilson added reviewers: rjmccall, ahatanak, grosbach.
bob.wilson added a subscriber: llvm-commits.
Herald added a subscriber: mcrosier.
This patch adds a new ".alt_entry" assembly directive for Mach-O and uses it for global aliases with non-zero GEP offsets. The directive name is based on the idea of it being an alternate entry point into the middle of an object. Akira Hatanaka developed this patch in consultation with John McCall and Nick Kledzik. This code is currently used for Swift but it is a general feature that I think we should support in trunk.
http://reviews.llvm.org/D17854
Files:
include/llvm/MC/MCAsmInfo.h
include/llvm/MC/MCDirectives.h
include/llvm/MC/MCSymbolMachO.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/MC/MCAsmInfo.cpp
lib/MC/MCAsmInfoDarwin.cpp
lib/MC/MCAsmStreamer.cpp
lib/MC/MCELFStreamer.cpp
lib/MC/MCMachOStreamer.cpp
lib/MC/MCParser/AsmParser.cpp
test/CodeGen/X86/alias-gep.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17854.49745.patch
Type: text/x-patch
Size: 7624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160303/e1577e45/attachment.bin>
More information about the llvm-commits
mailing list