Demangle: remove unnecessary typedef for std::vector

We could create a local typedef for std::vector called Vector.  Inline the use
of std::vector rather than use the typedef.  NFC.

llvm-svn: 287471
This commit is contained in:
Saleem Abdulrasool 2016-11-20 00:20:25 +00:00
parent be1fd54f85
commit 54ec3f9cf8
1 changed files with 3 additions and 5 deletions

View File

@ -4207,8 +4207,6 @@ static void demangle(const char *first, const char *last, C &db, int &status) {
}
namespace {
template <class T> using Vector = std::vector<T>;
template <class StrT> struct string_pair {
StrT first;
StrT second;
@ -4224,11 +4222,11 @@ template <class StrT> struct string_pair {
};
struct Db {
typedef Vector<string_pair<std::string>> sub_type;
typedef Vector<sub_type> template_param_type;
typedef std::vector<string_pair<std::string>> sub_type;
typedef std::vector<sub_type> template_param_type;
sub_type names;
template_param_type subs;
Vector<template_param_type> template_param;
std::vector<template_param_type> template_param;
unsigned cv = 0;
unsigned ref = 0;
unsigned encoding_depth = 0;