Skip to content
  1. Nov 22, 2008
  2. Nov 17, 2008
  3. Nov 16, 2008
  4. Nov 15, 2008
  5. Nov 11, 2008
  6. Oct 27, 2008
  7. Oct 21, 2008
  8. Oct 12, 2008
  9. Oct 06, 2008
  10. Aug 25, 2008
  11. Aug 23, 2008
  12. Aug 19, 2008
  13. Aug 16, 2008
  14. Aug 14, 2008
    • Daniel Dunbar's avatar
      Add GetAddrOfConstantCString method · c4baa06d
      Daniel Dunbar authored
       - Returns addr of constant for argument + '\0'.
       - I couldn't think of a better name.
       - Move appropriate users of GetAddrOfConstantString to this.
      
      Rename getStringForStringLiteral to GetStringForStringLiteral.
      
      Add GetAddrOfConstantStringFromLiteral
       - This combines GetAddrOfConstantString and
         GetStringForStringLiteral. This method can be, but is not yet, more
         efficient.
      
      Change GetAddrOfConstantString to not add terminating '\0'
       - <rdar://problem/6140956>
      
      llvm-svn: 54768
      c4baa06d
  15. Aug 13, 2008
  16. Aug 12, 2008
    • Daniel Dunbar's avatar
      Add ObjC constant string support for NeXT. · 8b8683f9
      Daniel Dunbar authored
      Changed CGObjCRuntime::GenerateConstantString interface to take
             std::string instead of char* and size.
      
      Change ObjC functions which call on GenerateConstantString to bitcast
             result to appropriate type.
      
      llvm-svn: 54659
      8b8683f9
  17. Aug 11, 2008
  18. Aug 10, 2008
  19. Aug 04, 2008
    • Chris Lattner's avatar
      · 7adf0760
      Chris Lattner authored
      Finally fix PR2189.  This makes a fairly invasive but important change to
      move getAsArrayType into ASTContext instead of being a method on type.
      This is required because getAsArrayType(const AT), where AT is a typedef
      for "int[10]" needs to return ArrayType(const int, 10).
      
      Fixing this greatly simplifies getArrayDecayedType, which is a good sign.
      
      llvm-svn: 54317
      7adf0760
  20. 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
  21. Jul 27, 2008
  22. Jul 17, 2008
  23. Jun 21, 2008
    • Chris Lattner's avatar
      "this patch adds code generation hooks for Objective-C constant strings. It... · 091f698d
      Chris Lattner authored
      "this patch adds code generation hooks for Objective-C constant strings.  It also modifies Sema so that Objective-C constant strings are treated as untyped objects if the interface for the constant string class can not be found.  This is consistent with Apple GCC.  I thought it was consistent with GNU GCC, since this was causing failures when trying to compile GNUstep with (GNU) GCC, but it appears that this is not the case when attempting to produce a simple test case to demonstrate it.  Possibly there is a way of making the error go away, but I haven't found out what it is yet."
      
      Patch by David Chisnall!
      
      llvm-svn: 52599
      091f698d
  24. Jun 07, 2008
  25. Jun 06, 2008
  26. Jun 01, 2008
  27. May 30, 2008
    • Eli Friedman's avatar
      Fix and enable generating general union initializers. Essentially, what · 34994cbc
      Eli Friedman authored
      this does is reconstruct the type for structs and arrays if the type 
      wouldn't be compatible otherwise.
      
      The assertion about packing in the struct type reconstruction code 
      sucks, but I don't see any obvious way to fix it.  Maybe we need a general
      utility method to take a list of types and alignments and try to construct an
      unpacked type if possible?
      
      llvm-svn: 51785
      34994cbc
    • Eli Friedman's avatar
      Fix constant vector init for initializer lists with an incomplete list · f7fe4165
      Eli Friedman authored
      of elements.
      
      llvm-svn: 51769
      f7fe4165
    • Eli Friedman's avatar
      Some additions to constant initializer generation code. Adds · a2eaffc7
      Eli Friedman authored
      bit-field initialization; ugly code, X86-only, but it works, at least 
      for basic stuff.  Separates/adds union initialization; currently disabled,
      though, because the struct/array code needs modifications to support 
      elements of the wrong type.
      
      Fixes PR2381 and PR2309 with the bit-field initialization.  And NetHack 
      compiles and appears to work with a few tweaks (to work around the lack 
      of transparent_union support, and clang being a bit strict about
      conflicting declarations).
      
      llvm-svn: 51763
      a2eaffc7
  28. May 29, 2008
Loading