1. Jul 13, 2011
  2. Jul 12, 2011
    • Garrison Venn's avatar
      Reverted 134901 because of 134959. Did not use svn merge -r but rather: · 76310ac9
      Garrison Venn authored
      1,$s/llvm::Type::getInt\(..\)Ty(builder.getContext())/builder.getInt\1Ty()/g
      1,$s/builder.getInt\(..*\)Ty()->getPointerTo()/builder.getInt\1PtrTy()/g
      
      vi sub commands (second one was not a reversion but requested by 
      Tobias Grosser.
      
      Mod was tested, but other examples have failed to build as they are currently 
      being thrashed with the const qualifier removal change.
      
      llvm-svn: 134985
      76310ac9
    • Douglas Gregor's avatar
      Improve name mangling for instantiation-dependent types that are not · 2207ec27
      Douglas Gregor authored
      dependent. This covers an odd class of types such as
      
        int (&)[sizeof(sizeof(T() + T()))];
      
      which involve template parameters but, because of some trick typically
      involving a form of expression that is never type-dependent, resolve
      down to a non-dependent type. Such types need to be mangled
      essentially as they were written in the source code (involving
      template parameters), rather than via their canonical type.
      
      In general, instantiation-dependent types should be mangled as
      they were written in the source. However, since we can't do that now
      without non-trivial refactoring of the AST (see the new FIXME), I've
      gone for this partial solution: only use the as-written-in-the-source
      mangling for these strange types that are instantiation-dependent but
      not dependent. This provides better compatibility with previous
      incarnations of Clang and with GCC. In the future, we'd like to get
      this right.
      
      Fixes <rdar://problem/9663282>.
      
      llvm-svn: 134984
      2207ec27
    • Benjamin Kramer's avatar
      Pop block scope after reading from it. · a4fb836f
      Benjamin Kramer authored
      Found by valgrind.
      
      llvm-svn: 134983
      a4fb836f
    • Jay Foad's avatar
      Second attempt at de-constifying LLVM Types in FunctionType::get(), · b804a2b7
      Jay Foad authored
      StructType::get() and TargetData::getIntPtrType().
      
      llvm-svn: 134982
      b804a2b7
    • Tobias Grosser's avatar
      www: Fix typo · 0a33f7e6
      Tobias Grosser authored
      llvm-svn: 134981
      0a33f7e6
    • Tobias Grosser's avatar
      Adapt to LLVM type system changes · 851b96e7
      Tobias Grosser authored
      Remove constness of Types and do not name the structures generated in the OpenMP
      code.
      
      llvm-svn: 134980
      851b96e7
    • Tobias Grosser's avatar
      VectorType is also a SequentialType · 585b36a1
      Tobias Grosser authored
      llvm-svn: 134979
      585b36a1
    • Tobias Grosser's avatar
      Remove IntegerType constness from TargetData · 6c3501d5
      Tobias Grosser authored
      llvm-svn: 134978
      6c3501d5
    • Chandler Carruth's avatar
      Work around a problem with a static helper's formulation in release · 4678f671
      Chandler Carruth authored
      builds introduced in r134972:
      
      lib/CodeGen/CGExpr.cpp:1294:7: error: no matching function for call to 'EmitBitCastOfLValueToProperType'
      lib/CodeGen/CGExpr.cpp:1278:1: note: candidate function not viable: no known conversion from 'CGBuilderTy' (aka 'IRBuilder<false>') to 'llvm::IRBuilder<> &' for 1st argument
      
      This fixes the issue by passing CodeGenFunction on down, and using its
      builder directly rather than passing just the builder down.
      
      This may not be the best / cleanest fix, Chris please review. It at
      least fixes builds.
      
      llvm-svn: 134977
      4678f671
    • Hans Wennborg's avatar
      Fix typo correction crash on overloaded functions, pr10283. · 38198ded
      Hans Wennborg authored
      It would be cool if we could do overload resolution to suggest
      the right function, but at least this fixes the crashing.
      
      llvm-svn: 134976
      38198ded