[llvm] r287471 - Demangle: remove unnecessary typedef for std::vector
Saleem Abdulrasool via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 19 16:20:25 PST 2016
Author: compnerd
Date: Sat Nov 19 18:20:25 2016
New Revision: 287471
URL: http://llvm.org/viewvc/llvm-project?rev=287471&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Demangle/ItaniumDemangle.cpp
Modified: llvm/trunk/lib/Demangle/ItaniumDemangle.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Demangle/ItaniumDemangle.cpp?rev=287471&r1=287470&r2=287471&view=diff
==============================================================================
--- llvm/trunk/lib/Demangle/ItaniumDemangle.cpp (original)
+++ llvm/trunk/lib/Demangle/ItaniumDemangle.cpp Sat Nov 19 18:20:25 2016
@@ -4207,8 +4207,6 @@ static void demangle(const char *first,
}
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;
More information about the llvm-commits
mailing list