]> granicus.if.org Git - clang/commitdiff
Reorder ParsedTemplateArg's members to reduce padding on x86_64.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 9 Jun 2012 15:15:27 +0000 (15:15 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 9 Jun 2012 15:15:27 +0000 (15:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158275 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/ParsedTemplate.h

index c1b471014b73ebba4cbc99c1863f1492c8686eea..69080ad9b1d7719475dbffc697a2050be3f2fb9e 100644 (file)
@@ -58,7 +58,7 @@ namespace clang {
                            SourceLocation TemplateLoc) 
       : Kind(ParsedTemplateArgument::Template),
         Arg(Template.getAsOpaquePtr()), 
-        Loc(TemplateLoc), SS(SS), EllipsisLoc() { }
+        SS(SS), Loc(TemplateLoc), EllipsisLoc() { }
     
     /// \brief Determine whether the given template argument is invalid.
     bool isInvalid() const { return Arg == 0; }
@@ -118,13 +118,13 @@ namespace clang {
     /// expression), or an ActionBase::TemplateTy (for a template).
     void *Arg;
 
-    /// \brief the location of the template argument.
-    SourceLocation Loc;
-    
     /// \brief The nested-name-specifier that can accompany a template template
     /// argument.
     CXXScopeSpec SS;
-    
+
+    /// \brief the location of the template argument.
+    SourceLocation Loc;
+
     /// \brief The ellipsis location that can accompany a template template
     /// argument (turning it into a template template argument expansion).
     SourceLocation EllipsisLoc;