HomePhabricator

Refactor GetNextPersistentVariableName into a non-virtual method that takes a…

Authored by aprantl on Apr 30 2018, 4:59 PM.

Description

Refactor GetNextPersistentVariableName into a non-virtual method that takes a prefix string. This simplifies the implementation and allows plugins such as the Swift plugin to supply different prefixes for return and error variables.

rdar://problem/39299889

Differential Revision: https://reviews.llvm.org/D46088

llvm-svn: 331235