Skip to content
  1. Nov 30, 2007
  2. Nov 29, 2007
  3. Nov 28, 2007
    • Steve Naroff's avatar
      · 197616c3
      Steve Naroff authored
      Several fixes/simplifications surrounding how we stream top-level decl AST's.
      
      The following code...
      
      typedef struct cssm_data {} CSSM_DATA, *CSSM_DATA_PTR;
      
      struct Y { int A; };
      
      struct X { int A; } D; 
      
      struct X E, F;
      
      ...now produces the following output...
      
      > ../../Debug/bin/clang xx.c -ast-print
      Read top-level tag decl: 'cssm_data'
      typedef struct cssm_data CSSM_DATA;
      typedef struct cssm_data *CSSM_DATA_PTR;
      Read top-level tag decl: 'Y'
      Read top-level tag decl: 'X'
      Read top-level variable decl: 'D'
      Read top-level variable decl: 'E'
      Read top-level variable decl: 'F'
      
      ...which is much more accurate than the previous -ast-print output...
      
      typedef struct cssm_data CSSM_DATA;
      typedef struct cssm_data CSSM_DATA;
      Read top-level variable decl: 'D'
      Read top-level variable decl: 'E'
      Read top-level variable decl: 'E'
      
      llvm-svn: 44421
      197616c3
    • Chris Lattner's avatar
      New testcase for PR1744 · cee633a8
      Chris Lattner authored
      llvm-svn: 44418
      cee633a8
    • Ted Kremenek's avatar
      Converted AST Pretty-Printer to use iostreams instead of FILE*. This fixes · 5933768b
      Ted Kremenek authored
      a bug where the statement pretty-printer used iostreams but the AST printer
      did not.  This was an issue when dumping ASTs to something other than stderr.
      
      Updated SerializationTest to use the new iostreams interface for the AST printer.
      
      llvm-svn: 44417
      5933768b
    • Ted Kremenek's avatar
    • Chris Lattner's avatar
      Work around a GCC bug, producing this code: · 246b7b2d
      Chris Lattner authored
        unsigned char *llvm_cbe_X;
      ...
        llvm_cbe_X = 0; *((void**)&llvm_cbe_X) = __builtin_stack_save();
      
      instead of:
      
        llvm_cbe_X = __builtin_stack_save();
      
      See PR1809 for details.
      
      llvm-svn: 44415
      246b7b2d
Loading