Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.cc

    r7d651a6 r490fb92e  
    11031103                return isCopyFunction( decl, "?{}" );
    11041104        }
    1105 
    1106         void addDataSectonAttribute( ObjectDecl * objDecl ) {
    1107                 Type *strLitT = new PointerType( Type::Qualifiers( ),
    1108                         new BasicType( Type::Qualifiers( ), BasicType::Char ) );
    1109                 std::list< Expression * > attr_params;
    1110                 attr_params.push_back(
    1111                         new ConstantExpr( Constant( strLitT, "\".data#\"", std::nullopt ) ) );
    1112                 objDecl->attributes.push_back(new Attribute("section", attr_params));
    1113         }
    1114 
    1115         void addDataSectionAttribute( ast::ObjectDecl * objDecl ) {
    1116                 auto strLitT = new ast::PointerType(new ast::BasicType(ast::BasicType::Char));
    1117                 objDecl->attributes.push_back(new ast::Attribute("section", {new ast::ConstantExpr(objDecl->location, strLitT, "\".data#\"", std::nullopt)}));
    1118         }
    1119 
    11201105}
Note: See TracChangeset for help on using the changeset viewer.