[PATCH] D11943: Redo "Make global aliases have symbol size equal to their type"
John Brawn via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 11 07:14:29 PDT 2015
john.brawn created this revision.
john.brawn added reviewers: rafael, ab.
john.brawn added a subscriber: llvm-commits.
john.brawn set the repository for this revision to rL LLVM.
r242520 was reverted in r244313 as the expected behaviour of the alias attribute in C is that the alias has the same size as the aliasee. However we can re-introduce adding the size on the alias when the aliasee does not, from a source code or object perspective, exist as a discrete entity. This happens when the aliasee is not a symbol, or when that symbol is private.
Repository:
rL LLVM
http://reviews.llvm.org/D11943
Files:
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
test/CodeGen/AArch64/global-merge-2.ll
test/CodeGen/AArch64/global-merge-3.ll
test/CodeGen/ARM/aliases.ll
test/CodeGen/ARM/global-merge-external.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11943.31812.patch
Type: text/x-patch
Size: 3610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150811/7a763bc4/attachment.bin>
More information about the llvm-commits
mailing list