llvm-6502/tools/llvm-upgrade
Chris Lattner 58d74910c6 Reimplement the parameter attributes support, phase #1. hilights:
1. There is now a "PAListPtr" class, which is a smart pointer around
   the underlying uniqued parameter attribute list object, and manages
   its refcount.  It is now impossible to mess up the refcount.
2. PAListPtr is now the main interface to the underlying object, and
   the underlying object is now completely opaque.
3. Implementation details like SmallVector and FoldingSet are now no
   longer part of the interface.
4. You can create a PAListPtr with an arbitrary sequence of
   ParamAttrsWithIndex's, no need to make a SmallVector of a specific 
   size (you can just use an array or scalar or vector if you wish).
5. All the client code that had to check for a null pointer before
   dereferencing the pointer is simplified to just access the 
   PAListPtr directly.
6. The interfaces for adding attrs to a list and removing them is a
   bit simpler.

Phase #2 will rename some stuff (e.g. PAListPtr) and do other less 
invasive changes.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48289 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-12 17:45:29 +00:00
..
llvm-upgrade.cpp remove attributions from tools. 2007-12-29 20:44:31 +00:00
Makefile remove attributions from tools/utils makefiles. 2007-12-29 20:07:17 +00:00
UpgradeInternals.h Unbreak build with gcc 4.3: provide missed includes and silence most annoying warnings. 2008-02-20 11:08:44 +00:00
UpgradeLexer.cpp.cvs regenerate 2007-12-29 20:47:37 +00:00
UpgradeLexer.l remove attributions 2007-12-29 20:46:15 +00:00
UpgradeLexer.l.cvs regenerate 2007-12-29 20:47:37 +00:00
UpgradeParser.cpp.cvs Reimplement the parameter attributes support, phase #1. hilights: 2008-03-12 17:45:29 +00:00
UpgradeParser.h.cvs Reimplement the parameter attributes support, phase #1. hilights: 2008-03-12 17:45:29 +00:00
UpgradeParser.y Reimplement the parameter attributes support, phase #1. hilights: 2008-03-12 17:45:29 +00:00
UpgradeParser.y.cvs Reimplement the parameter attributes support, phase #1. hilights: 2008-03-12 17:45:29 +00:00