[PATCH] D40712: Add cc1 flag enabling the function stack size section that was added in r319430

Paul Robinson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 8 15:48:14 PST 2017


probinson added a comment.

The title says "Add cc1 option..." which to me implies a "cc1 only" option.  What you're actually doing is adding a driver option.  Please update the title.



================
Comment at: test/Driver/stack-size-section.c:2
+// RUN: %clang -target x86_64-unknown %s -S -o %t
+// RUN: not grep '.stack_sizes' %t
+// RUN: %clang -target x86_64-unknown -fstack-size-section %s -S -o %t
----------------
Driver tests use `-###` to report the command line they'd use to invoke cc1, and verify the presence or absence of the option that you expect to see in the cc1 command line.  The actual functionality test (presence or absence of something in the IR or whatever) should go in some other more appropriate place.
Also, we use FileCheck not grep.


https://reviews.llvm.org/D40712





More information about the cfe-commits mailing list