diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-15 00:25:53 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-15 00:25:53 +0000 |
commit | e0a15bbc022686d56429e89923e16a8e8676e372 (patch) | |
tree | d014bbb2b93dcccb14121cb22675a6d832ff3312 /tools/llvm-upgrade/UpgradeLexer.l | |
parent | caed0e3d718a2c6f7734d19bcf47db0a572b8d83 (diff) | |
download | llvm-e0a15bbc022686d56429e89923e16a8e8676e372.tar.gz llvm-e0a15bbc022686d56429e89923e16a8e8676e372.tar.bz2 llvm-e0a15bbc022686d56429e89923e16a8e8676e372.tar.xz |
Reorganize things a bit in preparation for rewrite. Although this looks
like a lot, its really only two changes:
1. Move stuff that should be private to .y out of the .h file.
2. Make all semantic values pointers.
This cleans up the silly destroy methods and changes them to delete. It
also moves the TypeInfo and ValueInfo classes into the .y where we can
modify them more readily because they have no clients any more.
This shouldn't result in any functional changes in llvm-upgrade.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33211 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-upgrade/UpgradeLexer.l')
-rw-r--r-- | tools/llvm-upgrade/UpgradeLexer.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-upgrade/UpgradeLexer.l b/tools/llvm-upgrade/UpgradeLexer.l index 8b39045801..f32645dfe7 100644 --- a/tools/llvm-upgrade/UpgradeLexer.l +++ b/tools/llvm-upgrade/UpgradeLexer.l @@ -48,7 +48,7 @@ return sym #define RET_TY(sym,OldTY,NewTY,sign) \ - Upgradelval.Type = TypeInfo::get(NewTY, OldTY); \ + Upgradelval.Type = getTypeInfo(NewTY, OldTY); \ return sym #define YY_NEVER_INTERACTIVE 1 |