From 54ec3f9cf8cd4fec82de5a91180152977b9a5999 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 20 Nov 2016 00:20:25 +0000 Subject: [PATCH] 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 --- llvm/lib/Demangle/ItaniumDemangle.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/llvm/lib/Demangle/ItaniumDemangle.cpp b/llvm/lib/Demangle/ItaniumDemangle.cpp index 0bd1053..43c1e57 100644 --- a/llvm/lib/Demangle/ItaniumDemangle.cpp +++ b/llvm/lib/Demangle/ItaniumDemangle.cpp @@ -4207,8 +4207,6 @@ static void demangle(const char *first, const char *last, C &db, int &status) { } namespace { -template using Vector = std::vector; - template struct string_pair { StrT first; StrT second; @@ -4224,11 +4222,11 @@ template struct string_pair { }; struct Db { - typedef Vector> sub_type; - typedef Vector template_param_type; + typedef std::vector> sub_type; + typedef std::vector template_param_type; sub_type names; template_param_type subs; - Vector template_param; + std::vector template_param; unsigned cv = 0; unsigned ref = 0; unsigned encoding_depth = 0; -- 2.7.4