summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-upgrade/UpgradeParser.h.cvs
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-12 17:45:29 +0000
committerChris Lattner <sabre@nondot.org>2008-03-12 17:45:29 +0000
commit8a923e7c288cf383c2d44a23080d02579126c0a0 (patch)
tree528109f8de22bcc7ff4a60c0323b5722be9a8919 /llvm/tools/llvm-upgrade/UpgradeParser.h.cvs
parentb327e490473fdf5673e4ae5641f9f1b60a8c5f61 (diff)
downloadbcm5719-llvm-8a923e7c288cf383c2d44a23080d02579126c0a0.tar.gz
bcm5719-llvm-8a923e7c288cf383c2d44a23080d02579126c0a0.zip
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. llvm-svn: 48289
Diffstat (limited to 'llvm/tools/llvm-upgrade/UpgradeParser.h.cvs')
-rw-r--r--llvm/tools/llvm-upgrade/UpgradeParser.h.cvs2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-upgrade/UpgradeParser.h.cvs b/llvm/tools/llvm-upgrade/UpgradeParser.h.cvs
index 177836474a8..4d6e1f727d3 100644
--- a/llvm/tools/llvm-upgrade/UpgradeParser.h.cvs
+++ b/llvm/tools/llvm-upgrade/UpgradeParser.h.cvs
@@ -346,7 +346,7 @@
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
-#line 1681 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeParser.y"
+#line 1680 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeParser.y"
{
llvm::Module *ModuleVal;
llvm::Function *FunctionVal;
OpenPOWER on IntegriCloud