Demangle: remove unnecessary typedef for std::vector
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 20 Nov 2016 00:20:25 +0000 (00:20 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 20 Nov 2016 00:20:25 +0000 (00:20 +0000)
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

llvm/lib/Demangle/ItaniumDemangle.cpp

index 0bd1053..43c1e57 100644 (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;