valgrind clean version of llvm-upgrade

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32090 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2006-12-01 20:36:40 +00:00
parent e77e35e8b1
commit d154b57ab4
5 changed files with 355 additions and 378 deletions

View File

@@ -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; }