summaryrefslogtreecommitdiff
path: root/lib/Demangle
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-11-20 00:20:25 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-11-20 00:20:25 +0000
commit21918ee4aa175ec4c1b1265c4b2cd16b5bfa6294 (patch)
treebf5c2b158ba79761e75589d280a87848d71a03c2 /lib/Demangle
parente17a816352d8f6addddeeed2e302cc3c34377a36 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287471 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Demangle')
-rw-r--r--lib/Demangle/ItaniumDemangle.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Demangle/ItaniumDemangle.cpp b/lib/Demangle/ItaniumDemangle.cpp
index 0bd1053a301..43c1e57bf0e 100644
--- a/lib/Demangle/ItaniumDemangle.cpp
+++ b/lib/Demangle/ItaniumDemangle.cpp
@@ -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;