Skip to content
  1. Sep 28, 2011
  2. Feb 20, 2011
  3. Feb 19, 2011
  4. Feb 18, 2011
  5. Feb 10, 2011
  6. Sep 14, 2010
  7. Sep 10, 2010
  8. Sep 09, 2010
  9. Aug 20, 2010
  10. Aug 17, 2010
  11. Apr 30, 2010
  12. Dec 02, 2009
  13. Dec 01, 2009
  14. Oct 06, 2009
  15. Aug 28, 2009
  16. Aug 10, 2009
    • Chris Lattner's avatar
      fix a couple of problems with section attributes: · 30ba6743
      Chris Lattner authored
      1. Passing something that isn't a string used to cause:
         "argument to annotate attribute was not a string literal"
        make it say "section attribute" instead.
      
      2. Fix the location of the above message to point to the
         bad argument instead of the section token.
      
      3. Implement rdar://4341926, by diagnosing invalid section
         specifiers in the frontend rather than letting them slip all
         the way to the assembler (a QoI win).
      
      An example of #3 is that we used to produce something like this:
      
      /var/folders/n7/n7Yno9ihEm894640nJdSQU+++TI/-Tmp-//ccFPFGtT.s:2:Expected comma after segment-name
      /var/folders/n7/n7Yno9ihEm894640nJdSQU+++TI/-Tmp-//ccFPFGtT.s:2:Rest of line ignored. 1st junk character valued 46 (.).
      
      Daniel improved clang to use llvm_report_error, so now we got:
      
      $ clang t.c -c
      fatal error: error in backend: Global variable 'x' has an invalid section specifier 'sadf': mach-o section specifier
            requires a segment and section separated by a comma.
      
      with no loc info.  Now we get:
      
      $ clang t.c -fsyntax-only
      t.c:4:30: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment
            and section separated by a comma
      int x __attribute__((section("sadf")));
                                   ^
      
      which is nice :)
      
      llvm-svn: 78586
      30ba6743
  17. Jul 06, 2009
  18. Jun 25, 2009
    • Argyrios Kyrtzidis's avatar
      Introduce tools/index-test. · 92772215
      Argyrios Kyrtzidis authored
      This tool will be the test bed for indexing related operations. It basically reads PCH files passed by the command line and performs various operations.
      
      Currently it can accept a file:line:column which resolves to a declaration/statement and displays some information about them.
      
      llvm-svn: 74198
      92772215
Loading