Changeset 37b3151


Ignore:
Timestamp:
Nov 30, 2023, 3:53:45 PM (13 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
c4570af3
Parents:
d787828d
Message:

Rename the linkReferenceTypes pass and the file that contains it. BaseInstType? used to be called ReferenceToType?, so the reason for the pass being called that is no longer true.

Location:
src
Files:
2 edited
2 moved

Legend:

Unmodified
Added
Removed
  • src/Validate/LinkInstanceTypes.cpp

    rd787828d r37b3151  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // LinkReferenceToTypes.cpp -- Connect instance types to declarations.
     7// LinkInstanceTypes.cpp -- Connect instance types to declarations.
    88//
    99// Author           : Andrew Beach
     
    1414//
    1515
    16 #include "Validate/LinkReferenceToTypes.hpp"
     16#include "Validate/LinkInstanceTypes.hpp"
    1717
    1818#include "AST/Pass.hpp"
     
    331331} // namespace
    332332
    333 void linkReferenceToTypes( ast::TranslationUnit & translationUnit ) {
     333void linkInstanceTypes( ast::TranslationUnit & translationUnit ) {
    334334        ast::Pass<LinkTypesCore>::run( translationUnit );
    335335}
  • src/Validate/LinkInstanceTypes.hpp

    rd787828d r37b3151  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // LinkReferenceToTypes.hpp -- Connect instance types to declarations.
     7// LinkInstanceTypes.hpp -- Connect instance types to declarations.
    88//
    99// Author           : Andrew Beach
     
    2525/// adjustments, such as setting the sized flag.
    2626/// Because of the sized flag, it must happen before auto-gen.
    27 void linkReferenceToTypes( ast::TranslationUnit & translationUnit );
     27void linkInstanceTypes( ast::TranslationUnit & translationUnit );
    2828
    2929}
  • src/Validate/module.mk

    rd787828d r37b3151  
    4444        Validate/LabelAddressFixer.cpp \
    4545        Validate/LabelAddressFixer.hpp \
    46         Validate/LinkReferenceToTypes.cpp \
    47         Validate/LinkReferenceToTypes.hpp \
     46        Validate/LinkInstanceTypes.cpp \
     47        Validate/LinkInstanceTypes.hpp \
    4848        Validate/NoIdSymbolTable.hpp \
    4949        Validate/ReplaceTypedef.cpp \
  • src/main.cc

    rd787828d r37b3151  
    7878#include "Validate/InitializerLength.hpp"   // for setLengthFromInitializer
    7979#include "Validate/LabelAddressFixer.hpp"   // for fixLabelAddresses
    80 #include "Validate/LinkReferenceToTypes.hpp" // for linkReferenceToTypes
     80#include "Validate/LinkInstanceTypes.hpp"   // for linkInstanceTypes
    8181#include "Validate/ReplaceTypedef.hpp"      // for replaceTypedef
    8282#include "Validate/ReturnCheck.hpp"         // for checkReturnStatements
    8383#include "Validate/VerifyCtorDtorAssign.hpp" // for verifyCtorDtorAssign
    8484#include "Virtual/ExpandCasts.h"            // for expandCasts
    85 #include "Virtual/VirtualDtor.hpp"           // for implementVirtDtors
     85#include "Virtual/VirtualDtor.hpp"          // for implementVirtDtors
    8686
    8787using namespace std;
     
    318318                PASS( "Enum and Pointer Decay", Validate::decayEnumsAndPointers, transUnit );
    319319
    320                 PASS( "Link Reference To Types", Validate::linkReferenceToTypes, transUnit );
     320                PASS( "Link Instance Types", Validate::linkInstanceTypes, transUnit );
    321321
    322322                PASS( "Forall Pointer Decay", Validate::decayForallPointers, transUnit );
Note: See TracChangeset for help on using the changeset viewer.