[llvm-commits] [llvm] r74444 - in /llvm/trunk: docs/TableGenFundamentals.html utils/TableGen/Record.cpp utils/TableGen/Record.h

Chris Lattner clattner at apple.com
Mon Jun 29 15:51:22 PDT 2009


On Jun 29, 2009, at 1:05 PM, David Greene wrote:

> Author: greened
> Date: Mon Jun 29 15:05:29 2009
> New Revision: 74444
> Implement !cast<string>.

Hi David,

> +
> +//       VarInit *LHSv = dynamic_cast<VarInit*>(LHS);
> +//       if (LHSv) {
> +//         // If this is not a template arg, cast it
> +//         if (!CurRec->isTemplateArg(LHSv->getName())
> +//             && !CurMultiClass) {
> +//           return new StringInit(LHSv->getName());
> +//         }
> +//         break;
> +//       }
> +
> +//       OpInit *LHSo = dynamic_cast<OpInit*>(LHS);
> +//       if (!LHSo) {
> +//         return new StringInit(LHS->getAsString());
> +//       }
> +    }

Please remove the commented-out code, thanks!

-Chris



More information about the llvm-commits mailing list