diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-01 20:36:40 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-01 20:36:40 +0000 |
| commit | 16353d6583860a8b461ba12fa2f117ac146b084d (patch) | |
| tree | 2a169be273e4a420b494276195d6bb05d146d24c /llvm/tools/llvm-upgrade/UpgradeParser.y.cvs | |
| parent | 2daa57894fd42311fe8f389a3bc972daf0a4c250 (diff) | |
| download | bcm5719-llvm-16353d6583860a8b461ba12fa2f117ac146b084d.tar.gz bcm5719-llvm-16353d6583860a8b461ba12fa2f117ac146b084d.zip | |
valgrind clean version of llvm-upgrade
llvm-svn: 32090
Diffstat (limited to 'llvm/tools/llvm-upgrade/UpgradeParser.y.cvs')
| -rw-r--r-- | llvm/tools/llvm-upgrade/UpgradeParser.y.cvs | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/llvm/tools/llvm-upgrade/UpgradeParser.y.cvs b/llvm/tools/llvm-upgrade/UpgradeParser.y.cvs index 930325c1bd2..bd877403383 100644 --- a/llvm/tools/llvm-upgrade/UpgradeParser.y.cvs +++ b/llvm/tools/llvm-upgrade/UpgradeParser.y.cvs @@ -280,8 +280,10 @@ Types : UpRTypes ; // PrimType : BOOL | SBYTE | UBYTE | SHORT | USHORT | INT | UINT ; PrimType : LONG | ULONG | FLOAT | DOUBLE | LABEL; -UpRTypes : OPAQUE | PrimType | SymbolicValueRef { - $$.newTy = $1; }; +UpRTypes : OPAQUE | PrimType + | SymbolicValueRef { + $$.newTy = $1; $$.oldTy = OpaqueTy; + }; // Include derived types in the Types production. // @@ -549,12 +551,13 @@ DefinitionList : DefinitionList Function { } | DefinitionList MODULE ASM_TOK AsmBlock { *O << "module asm " << " " << *$4 << "\n"; + $$ = 0; } | DefinitionList IMPLEMENTATION { *O << "implementation\n"; + $$ = 0; } - | ConstPool { - }; + | ConstPool; // ConstPool - Constants with optional names assigned to them. ConstPool : ConstPool OptAssign TYPE TypesV { @@ -690,9 +693,7 @@ ArgList : ArgListH { | DOTDOTDOT { $$ = $1; } - | /* empty */ { - $$ = new std::string(); - }; + | /* empty */ { $$ = new std::string(); }; FunctionHeaderH : OptCallingConv TypesV Name '(' ArgList ')' OptSection OptAlign { @@ -760,10 +761,8 @@ FunctionProto // Rules to match Basic Blocks //===----------------------------------------------------------------------===// -OptSideEffect : /* empty */ { - } - | SIDEEFFECT { - }; +OptSideEffect : /* empty */ { $$ = new std::string(); } + | SIDEEFFECT; ConstValueRef : ESINT64VAL { $$ = $1.cnst; } |

