From ad017fa7a4df7389d245d02a49b3c79ed70bedb9 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 20 Dec 2012 19:22:21 +0000 Subject: Revert r170500. It over-zealously converted *ALL* things named Attributes, which is wrong here. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170721 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Lex/ModuleMap.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/Lex/ModuleMap.cpp') diff --git a/lib/Lex/ModuleMap.cpp b/lib/Lex/ModuleMap.cpp index 3f8af8790a..b815400754 100644 --- a/lib/Lex/ModuleMap.cpp +++ b/lib/Lex/ModuleMap.cpp @@ -655,8 +655,8 @@ namespace clang { }; /// \brief The set of attributes that can be attached to a module. - struct Attribute { - Attribute() : IsSystem() { } + struct Attributes { + Attributes() : IsSystem() { } /// \brief Whether this is a system module. unsigned IsSystem : 1; @@ -709,7 +709,7 @@ namespace clang { void parseUmbrellaDirDecl(SourceLocation UmbrellaLoc); void parseExportDecl(); void parseInferredModuleDecl(bool Framework, bool Explicit); - bool parseOptionalAttributes(Attribute &Attrs); + bool parseOptionalAttributes(Attributes &Attrs); const DirectoryEntry *getOverriddenHeaderSearchDir(); @@ -1007,7 +1007,7 @@ void ModuleMapParser::parseModuleDecl() { SourceLocation ModuleNameLoc = Id.back().second; // Parse the optional attribute list. - Attribute Attrs; + Attributes Attrs; parseOptionalAttributes(Attrs); // Parse the opening brace. @@ -1475,7 +1475,7 @@ void ModuleMapParser::parseInferredModuleDecl(bool Framework, bool Explicit) { } // Parse optional attributes. - Attribute Attrs; + Attributes Attrs; parseOptionalAttributes(Attrs); if (ActiveModule) { @@ -1576,7 +1576,7 @@ void ModuleMapParser::parseInferredModuleDecl(bool Framework, bool Explicit) { /// \param Attrs Will be filled in with the parsed attributes. /// /// \returns true if an error occurred, false otherwise. -bool ModuleMapParser::parseOptionalAttributes(Attribute &Attrs) { +bool ModuleMapParser::parseOptionalAttributes(Attributes &Attrs) { bool HadError = false; while (Tok.is(MMToken::LSquare)) { -- cgit v1.2.3-18-g5258