diff options
Diffstat (limited to 'llvm/tools/llvm-upgrade/ParserInternals.h')
| -rw-r--r-- | llvm/tools/llvm-upgrade/ParserInternals.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/tools/llvm-upgrade/ParserInternals.h b/llvm/tools/llvm-upgrade/ParserInternals.h index df9d2a80f37..7fe022efc1d 100644 --- a/llvm/tools/llvm-upgrade/ParserInternals.h +++ b/llvm/tools/llvm-upgrade/ParserInternals.h @@ -60,6 +60,12 @@ struct TypeInfo { void destroy() const { delete newTy; } + TypeInfo clone() const { + TypeInfo result = *this; + result.newTy = new std::string(*newTy); + return result; + } + Types getElementType() const { return elemTy; } bool isSigned() const { |

