[cfe-commits] r158275 - /cfe/trunk/include/clang/Sema/ParsedTemplate.h
Benjamin Kramer
benny.kra at googlemail.com
Sat Jun 9 08:15:27 PDT 2012
Author: d0k
Date: Sat Jun 9 10:15:27 2012
New Revision: 158275
URL: http://llvm.org/viewvc/llvm-project?rev=158275&view=rev
Log:
Reorder ParsedTemplateArg's members to reduce padding on x86_64.
Modified:
cfe/trunk/include/clang/Sema/ParsedTemplate.h
Modified: cfe/trunk/include/clang/Sema/ParsedTemplate.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/ParsedTemplate.h?rev=158275&r1=158274&r2=158275&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/ParsedTemplate.h (original)
+++ cfe/trunk/include/clang/Sema/ParsedTemplate.h Sat Jun 9 10:15:27 2012
@@ -58,7 +58,7 @@
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 @@
/// 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;
More information about the cfe-commits
mailing list