From 6faf6b1833cbd8ee82fe982da90bc8ee71e6e95b Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Fri, 7 Nov 2014 22:09:52 +0000 Subject: [PATCH] Transforms: use typedef rather than using aliases Visual Studio 2012 apparently does not support using alias declarations. Use the more traditional typedef approach. This should let the Windows buildbots pass. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221554 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/SymbolRewriter.cpp | 51 ++++++++++++------------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/lib/Transforms/Utils/SymbolRewriter.cpp b/lib/Transforms/Utils/SymbolRewriter.cpp index 9afdff1d66c..a8f125f12dd 100644 --- a/lib/Transforms/Utils/SymbolRewriter.cpp +++ b/lib/Transforms/Utils/SymbolRewriter.cpp @@ -156,52 +156,51 @@ performOnModule(Module &M) { /// Represents a rewrite for an explicitly named (function) symbol. Both the /// source function name and target function name of the transformation are /// explicitly spelt out. -using ExplicitRewriteFunctionDescriptor = - ExplicitRewriteDescriptor; +typedef ExplicitRewriteDescriptor + ExplicitRewriteFunctionDescriptor; /// Represents a rewrite for an explicitly named (global variable) symbol. Both /// the source variable name and target variable name are spelt out. This /// applies only to module level variables. -using ExplicitRewriteGlobalVariableDescriptor = - ExplicitRewriteDescriptor; +typedef ExplicitRewriteDescriptor + ExplicitRewriteGlobalVariableDescriptor; /// Represents a rewrite for an explicitly named global alias. Both the source /// and target name are explicitly spelt out. -using ExplicitRewriteNamedAliasDescriptor = - ExplicitRewriteDescriptor; +typedef ExplicitRewriteDescriptor + ExplicitRewriteNamedAliasDescriptor; /// Represents a rewrite for a regular expression based pattern for functions. /// A pattern for the function name is provided and a transformation for that /// pattern to determine the target function name create the rewrite rule. -using PatternRewriteFunctionDescriptor = - PatternRewriteDescriptor; - +typedef PatternRewriteDescriptor + PatternRewriteFunctionDescriptor; /// Represents a rewrite for a global variable based upon a matching pattern. /// Each global variable matching the provided pattern will be transformed as /// described in the transformation pattern for the target. Applies only to /// module level variables. -using PatternRewriteGlobalVariableDescriptor = - PatternRewriteDescriptor; +typedef PatternRewriteDescriptor + PatternRewriteGlobalVariableDescriptor; /// PatternRewriteNamedAliasDescriptor - represents a rewrite for global /// aliases which match a given pattern. The provided transformation will be /// applied to each of the matching names. -using PatternRewriteNamedAliasDescriptor = - PatternRewriteDescriptor; - +typedef PatternRewriteDescriptor + PatternRewriteNamedAliasDescriptor; bool RewriteMapParser::parse(const std::string &MapFile, RewriteDescriptorList *DL) { -- 2.34.1