[PATCH] D44848: Align stubs for external and common global variables to pointer size.

Rahul Chaudhry via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 29 14:39:50 PDT 2018


rahulchaudhry added inline comments.


================
Comment at: test/Object/X86/align-stub.ll:12
+
+$_ZTS3bar = comdat any
+
----------------
espindola wrote:
> Code change LGTM, but can't you trim the test a bit? For example, why do you need two comdats to test a change on the exception table output?
> 
The test file was generated by running "clang++ -fPIE -emit-llvm -S " on the testcase in PR36885.
I removed a few lines of header and footer as it didn't matter.
I don't know llvm well enough to be comfortable editing this file by hand, or to write one from scratch.

Frankly, it's not the greatest idea that we're adding compiler generated output as tests, instead of the original source which is far more compact and readable.



Repository:
  rL LLVM

https://reviews.llvm.org/D44848





More information about the llvm-commits mailing list