Changeset 26d944c


Ignore:
Timestamp:
Jun 17, 2021, 1:38:04 PM (7 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
jacob/cs343-translation, master, new-ast-unique-expr
Children:
fde879b3
Parents:
f558b5f (diff), 02f4eb8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.cc

    rf558b5f r26d944c  
    1010// Created On       : Fri May 13 11:26:36 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Jun 16 16:40:24 2021
    13 // Update Count     : 10
     12// Last Modified On : Wed Jun 16 20:57:22 2021
     13// Update Count     : 18
    1414//
    1515
     
    12171217        void addDataSectonAttribute( ObjectDecl * objDecl ) {
    12181218                objDecl->attributes.push_back(new Attribute("section", {
    1219 #if defined( __x86_64 ) || defined( __i386 )
    1220                         new ConstantExpr( Constant::from_string(".data#") ),
     1219                        new ConstantExpr( Constant::from_string(".data"
     1220#if defined( __x86_64 ) || defined( __i386 ) // assembler comment to prevent assembler warning message
     1221                                        "#"
    12211222#else // defined( __ARM_ARCH )
    1222                         new ConstantExpr( Constant::from_string(".data//") ),
     1223                                        "//"
    12231224#endif
    1224                 }));
     1225                                ))}));
    12251226        }
    12261227
    12271228        void addDataSectionAttribute( ast::ObjectDecl * objDecl ) {
    12281229                objDecl->attributes.push_back(new ast::Attribute("section", {
    1229 #if defined( __x86_64 ) || defined( __i386 )
    1230                         ast::ConstantExpr::from_string(objDecl->location, ".data#"),
     1230                        ast::ConstantExpr::from_string(objDecl->location, ".data"
     1231#if defined( __x86_64 ) || defined( __i386 ) // assembler comment to prevent assembler warning message
     1232                                        "#"
    12311233#else // defined( __ARM_ARCH )
    1232                         ast::ConstantExpr::from_string(objDecl->location, ".data//"),
     1234                                        "//"
    12331235#endif
    1234                 }));
     1236                                )}));
    12351237        }
    12361238
Note: See TracChangeset for help on using the changeset viewer.