mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Refactor LazyImportRef into ImportRefUnused. (#3656)
This makes some changes to the formatter so that ImportRefUnused and ImportRefUsed will both be labeled as "import_ref" with an "unused -> used" argument change in textual IR, but is otherwise not changing logic.
This commit is contained in:
@@ -245,10 +245,10 @@ static auto GetTypePrecedence(InstKind kind) -> int {
|
||||
case FieldDecl::Kind:
|
||||
case FunctionDecl::Kind:
|
||||
case Import::Kind:
|
||||
case ImportRefUnused::Kind:
|
||||
case InitializeFrom::Kind:
|
||||
case InterfaceDecl::Kind:
|
||||
case IntLiteral::Kind:
|
||||
case LazyImportRef::Kind:
|
||||
case Namespace::Kind:
|
||||
case Param::Kind:
|
||||
case RealLiteral::Kind:
|
||||
@@ -451,10 +451,10 @@ auto File::StringifyTypeExpr(InstId outer_inst_id) const -> std::string {
|
||||
case FieldDecl::Kind:
|
||||
case FunctionDecl::Kind:
|
||||
case Import::Kind:
|
||||
case ImportRefUnused::Kind:
|
||||
case InitializeFrom::Kind:
|
||||
case InterfaceDecl::Kind:
|
||||
case IntLiteral::Kind:
|
||||
case LazyImportRef::Kind:
|
||||
case Namespace::Kind:
|
||||
case Param::Kind:
|
||||
case RealLiteral::Kind:
|
||||
@@ -509,8 +509,8 @@ auto GetExprCategory(const File& file, InstId inst_id) -> ExprCategory {
|
||||
case FieldDecl::Kind:
|
||||
case FunctionDecl::Kind:
|
||||
case Import::Kind:
|
||||
case ImportRefUnused::Kind:
|
||||
case InterfaceDecl::Kind:
|
||||
case LazyImportRef::Kind:
|
||||
case Namespace::Kind:
|
||||
case Return::Kind:
|
||||
case ReturnExpr::Kind:
|
||||
|
||||
Reference in New Issue
Block a user