Skip to content

Commit 9c1a614

Browse files
committed
Fix based on review comments
1 parent 00be0b5 commit 9c1a614

File tree

12 files changed

+16
-15
lines changed

12 files changed

+16
-15
lines changed

include/swift/Basic/Semantics.def renamed to include/swift/AST/SemanticAttrs.def

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
//
33
// This source file is part of the Swift.org open source project
44
//
5-
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information
99
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1010
//
1111
//===----------------------------------------------------------------------===//
1212
//
13-
// This macro is used to map the global definition name of a semantic attribute to its raw value.
13+
// This macro is used to map the global definition name of a semantic
14+
// attribute to its raw value.
1415
// NAME: the global name used in the compiler
1516
// C_STR: the raw value used in swift
1617
//

include/swift/Basic/Semantics.h renamed to include/swift/AST/SemanticAttrs.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift.org open source project
44
//
5-
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212
//
1313
// Implementation of the matching definition file.
14-
// This file holds all semantics attributes as consant stirng literals.
14+
// This file holds all semantics attributes as constant string literals.
1515
//
1616
//===----------------------------------------------------------------------===//
1717

@@ -22,7 +22,7 @@
2222

2323
namespace swift {
2424
#define SEMA_ATTR(NAME, C_STR) constexpr static const StringLiteral NAME = #C_STR;
25-
#include "Semantics.def"
25+
#include "SemanticAttrs.def"
2626
}
2727

2828
#endif

lib/IRGen/AllocStackHoisting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "swift/SIL/SILBuilder.h"
2222
#include "swift/SIL/SILInstruction.h"
2323
#include "swift/SIL/SILArgument.h"
24-
#include "swift/Basic/Semantics.h"
24+
#include "swift/AST/SemanticAttrs.h"
2525

2626
#include "IRGenModule.h"
2727
#include "NonFixedTypeInfo.h"

lib/SILOptimizer/Analysis/ColdBlockInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "swift/SILOptimizer/Analysis/ColdBlockInfo.h"
1414
#include "swift/SILOptimizer/Analysis/DominanceAnalysis.h"
1515
#include "swift/SIL/SILArgument.h"
16-
#include "swift/Basic/Semantics.h"
16+
#include "swift/AST/SemanticAttrs.h"
1717

1818
using namespace swift;
1919

lib/SILOptimizer/Mandatory/OSLogOptimization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
#include "swift/AST/Module.h"
7878
#include "swift/AST/SubstitutionMap.h"
7979
#include "swift/Basic/OptimizationMode.h"
80-
#include "swift/Basic/Semantics.h"
80+
#include "swift/AST/SemanticAttrs.h"
8181
#include "swift/Demangling/Demangle.h"
8282
#include "swift/Demangling/Demangler.h"
8383
#include "swift/SIL/BasicBlockUtils.h"

lib/SILOptimizer/SILCombiner/SILCombinerApplyVisitors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "swift/AST/Module.h"
1717
#include "swift/AST/SubstitutionMap.h"
1818
#include "swift/Basic/Range.h"
19-
#include "swift/Basic/Semantics.h"
19+
#include "swift/AST/SemanticAttrs.h"
2020
#include "swift/SIL/DebugUtils.h"
2121
#include "swift/SIL/DynamicCasts.h"
2222
#include "swift/SIL/InstructionUtils.h"

lib/SILOptimizer/Transforms/ObjectOutliner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#define DEBUG_TYPE "objectoutliner"
1414
#include "swift/AST/ASTMangler.h"
15-
#include "swift/Basic/Semantics.h"
15+
#include "swift/AST/SemanticAttrs.h"
1616
#include "swift/SIL/DebugUtils.h"
1717
#include "swift/SIL/SILBuilder.h"
1818
#include "swift/SILOptimizer/PassManager/Transforms.h"

lib/SILOptimizer/Transforms/PerformanceInliner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#define DEBUG_TYPE "sil-inliner"
1414
#include "swift/AST/Module.h"
15-
#include "swift/Basic/Semantics.h"
15+
#include "swift/AST/SemanticAttrs.h"
1616
#include "swift/SIL/MemAccessUtils.h"
1717
#include "swift/SIL/OptimizationRemark.h"
1818
#include "swift/SILOptimizer/Analysis/SideEffectAnalysis.h"

lib/SILOptimizer/Utils/ConstExpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "swift/AST/SubstitutionMap.h"
1717
#include "swift/Basic/Defer.h"
1818
#include "swift/Basic/NullablePtr.h"
19-
#include "swift/Basic/Semantics.h"
19+
#include "swift/AST/SemanticAttrs.h"
2020
#include "swift/Demangling/Demangle.h"
2121
#include "swift/SIL/ApplySite.h"
2222
#include "swift/SIL/FormalLinkage.h"

lib/SILOptimizer/Utils/ConstantFolding.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include "swift/AST/DiagnosticsSIL.h"
1616
#include "swift/AST/Expr.h"
17-
#include "swift/Basic/Semantics.h"
17+
#include "swift/AST/SemanticAttrs.h"
1818
#include "swift/SIL/InstructionUtils.h"
1919
#include "swift/SIL/PatternMatch.h"
2020
#include "swift/SIL/SILBuilder.h"

lib/SILOptimizer/Utils/Generics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "swift/AST/TypeMatcher.h"
1818
#include "swift/AST/DiagnosticEngine.h"
1919
#include "swift/AST/DiagnosticsSIL.h"
20-
#include "swift/Basic/Semantics.h"
20+
#include "swift/AST/SemanticAttrs.h"
2121
#include "swift/Basic/Statistic.h"
2222
#include "swift/AST/TypeCheckRequests.h"
2323
#include "swift/Serialization/SerializedSILLoader.h"

lib/SILOptimizer/Utils/InstOptUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "swift/SILOptimizer/Utils/InstOptUtils.h"
1414
#include "swift/AST/GenericSignature.h"
1515
#include "swift/AST/SubstitutionMap.h"
16-
#include "swift/Basic/Semantics.h"
16+
#include "swift/AST/SemanticAttrs.h"
1717
#include "swift/SIL/BasicBlockUtils.h"
1818
#include "swift/SIL/DebugUtils.h"
1919
#include "swift/SIL/DynamicCasts.h"

0 commit comments

Comments
 (0)