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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to