Skip to content
  1. Nov 12, 2009
  2. Sep 09, 2009
  3. Aug 24, 2009
  4. Jul 02, 2009
  5. Jul 01, 2009
  6. Apr 21, 2009
    • Douglas Gregor's avatar
      Explictly track tentative definitions within Sema, then hand those · beecd58e
      Douglas Gregor authored
      tentative definitions off to the ASTConsumer at the end of the
      translation unit. 
      
      Eliminate CodeGen's internal tracking of tentative definitions, and
      instead hook into ASTConsumer::CompleteTentativeDefinition. Also,
      tweak the definition-deferal logic for C++, where there are no
      tentative definitions.
      
      Fixes <rdar://problem/6808352>, and will make it much easier for
      precompiled headers to cope with tentative definitions in the future.
      
      llvm-svn: 69681
      beecd58e
  7. Mar 29, 2009
    • Chris Lattner's avatar
      Push DeclGroup much farther throughout the compiler. Now the various · 5bbb3c8a
      Chris Lattner authored
      productions (except the already broken ObjC cases like @class X,Y;) in 
      the parser that can produce more than one Decl return a DeclGroup instead
      of a Decl, etc.
      
      This allows elimination of the Decl::NextDeclarator field, and exposes
      various clients that should look at all decls in a group, but which were
      only looking at one (such as the dumper, printer, etc).  These have been
      fixed.
      
      Still TODO:
      
      1) there are some FIXME's in the code about potentially using
      DeclGroup for better location info.
      2) ParseObjCAtDirectives should return a DeclGroup due to @class etc.
      3) I'm not sure what is going on with StmtIterator.cpp, or if it can
         be radically simplified now.
      4) I put a truly horrible hack in ParseTemplate.cpp.
      
      I plan to bring up #3/4 on the mailing list, but don't plan to tackle
      #1/2 in the short term.
      
      llvm-svn: 68002
      5bbb3c8a
  8. Mar 28, 2009
  9. Mar 26, 2009
  10. Feb 17, 2009
  11. Jan 20, 2009
    • Douglas Gregor's avatar
      Remove ScopedDecl, collapsing all of its functionality into Decl, so · 6e6ad602
      Douglas Gregor authored
      that every declaration lives inside a DeclContext.
      
      Moved several things that don't have names but were ScopedDecls (and,
      therefore, NamedDecls) to inherit from Decl rather than NamedDecl,
      including ObjCImplementationDecl and LinkageSpecDecl. Now, we don't
      store empty DeclarationNames for these things, nor do we try to insert
      them into DeclContext's lookup structure.
      
      The serialization tests are temporarily disabled. We'll re-enable them
      once we've sorted out the remaining ownership/serialiazation issues
      between DeclContexts and TranslationUnion, DeclGroups, etc.
      
      llvm-svn: 62562
      6e6ad602
  12. Oct 21, 2008
  13. Aug 16, 2008
    • Daniel Dunbar's avatar
      Clean up CodeGenModule interface. · fce4be84
      Daniel Dunbar authored
       - Add CodeGenModule::EmitTopLevelDecl which uses switch on kind
         instead of ugly & slow dyn_cast chains.
      
       - Drop some simple forwarding methods into the ObjC runtime.
      
       - Privatize appropriate methods.
      
      llvm-svn: 54827
      fce4be84
  14. Aug 13, 2008
  15. Aug 11, 2008
    • Daniel Dunbar's avatar
      Add LangOptions::NeXTRuntime. · 3ad53483
      Daniel Dunbar authored
       - Wired to -fnext-runtime and -fgnu-runtime options.
       - Defaults to GNU, no autoselection for NeXT.
      
      Emit NeXT OBJC_IMAGE_INFO marker.
      
      llvm-svn: 54651
      3ad53483
    • Daniel Dunbar's avatar
      More #include cleaning · 56fdb6ae
      Daniel Dunbar authored
       - Kill unnecessary #includes in .cpp files. This is an automatic
         sweep so some things removed are actually used, but happen to be
         included by a previous header. I tried to get rid of the obvious
         examples and this was the easiest way to trim the #includes in one
         fell swoop.
       - We now return to regularly scheduled development.
      
      llvm-svn: 54632
      56fdb6ae
    • Daniel Dunbar's avatar
      More #include cleaning · 221fa94e
      Daniel Dunbar authored
       - Drop Expr.h,RecordLayout.h from ASTContext.h (for DeclBase.h and
         SourceLocation.h)
       - Move ASTContext constructor into implementation
      
      llvm-svn: 54627
      221fa94e
    • Daniel Dunbar's avatar
      Add dummy Mac Objective-C runtime interface. · 303e2c2f
      Daniel Dunbar authored
        - Not currently accessible and completely non-functional.
      
      llvm-svn: 54624
      303e2c2f
  16. Aug 10, 2008
  17. Aug 07, 2008
  18. Aug 05, 2008
    • Ted Kremenek's avatar
      Refactored driver logic for CodeGen into LLVMCodeGenWriter. This ASTConsumer... · 2c674f6d
      Ted Kremenek authored
      Refactored driver logic for CodeGen into LLVMCodeGenWriter.  This ASTConsumer layers on top of LLVMCodeGen (another existing ASTConsumer) to emit bitcode files to disk.  This layering takes this logic out of clang.cpp and puts it directly into the ASTConsumer interface.  The benefit is that now --emit-llvm works with both serialized ASTs and regular source files.
      
      llvm-svn: 54364
      2c674f6d
  19. Jul 30, 2008
    • Daniel Dunbar's avatar
      Rework codegen emission of globals · 9c426524
      Daniel Dunbar authored
       - No (intended) functionality change.
      
       - Primary purpose is to clearly separate (lazy) construction of
         globals that are a forward declaration or tentative definition from
         those that are the final definition.
      
       - Lazy construction is now encapsulated in
         GetAddrOf{Function,GlobalVar} while final definitions are
         constructed in EmitGlobal{Function,Var}Definition.
       
       - External interface for dealing with globals is now limited to
         EmitGlobal and GetAddrOf{Function,GlobalVar}.
      
       - Also updated helper functions dealing with statics, annotations,
         and ctors to be private.
      
      llvm-svn: 54179
      9c426524
  20. Jul 29, 2008
  21. Jun 01, 2008
  22. May 27, 2008
  23. May 08, 2008
    • Sanjiv Gupta's avatar
      Added -g command line options to clang for generating source level debug... · 15cb6690
      Sanjiv Gupta authored
      Added -g command line options to clang for generating source level debug information. This patch currently enables generation of line number debug information (stoppoints) and region begin/end debug information. The new files CGDebugInfo.h and CGDebugInfo.cpp implements the debug info manager class CGDebugInfo.
      
      llvm-svn: 50848
      15cb6690
  24. Apr 16, 2008
    • Steve Naroff's avatar
      Remove FileVarDecl and BlockVarDecl. They are replaced by... · 08899ff8
      Steve Naroff authored
      Remove FileVarDecl and BlockVarDecl. They are replaced by VarDecl::isBlockVarDecl() and VarDecl::isFileVarDecl().
      
      This is a fairly mechanical/large change. As a result, I avoided making any changes/simplifications that weren't directly related. I did break two Analysis tests. I also have a couple FIXME's in UninitializedValues.cpp. Ted, can you take a look? If the bug isn't obvious, I am happy to dig in and fix it (since I broke it).
      
      llvm-svn: 49748
      08899ff8
  25. Mar 31, 2008
  26. Mar 16, 2008
    • Chris Lattner's avatar
      Make a major restructuring of the clang tree: introduce a top-level · 7a51313d
      Chris Lattner authored
      lib dir and move all the libraries into it.  This follows the main
      llvm tree, and allows the libraries to be built in parallel.  The
      top level now enforces that all the libs are built before Driver,
      but we don't care what order the libs are built in.  This speeds
      up parallel builds, particularly incremental ones.
      
      llvm-svn: 48402
      7a51313d
  27. Feb 08, 2008
  28. Feb 07, 2008
  29. Feb 06, 2008
  30. Feb 05, 2008
  31. Jan 12, 2008
  32. Dec 29, 2007
  33. Dec 02, 2007
Loading