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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This also needs a negative test showing when .size is *not* printed.
It would also be nice to add a test to clang with both -emit-llvm and -S. This is one of the special situations where I think an integration test makes sense. If we change how we represent this we will still want to make sure clang is not printing extra .size directives.
Thanks!
Comment Actions
Make the test check that the size directive is not emitted when we expect it to not be emitted.