Skip to content

Commit c2fd49c

Browse files
authored
Merge pull request #39473 from apple/rebranch
Update swift:main to support llvm-project:stable/20210726 changes (Rebranch merge)
2 parents 0f73410 + adf8ba3 commit c2fd49c

File tree

183 files changed

+1039
-648
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+1039
-648
lines changed

benchmark/scripts/compare_perf_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

44
# ===--- compare_perf_tests.py -------------------------------------------===//

benchmark/scripts/test_Benchmark_Driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

44
# ===--- test_Benchmark_Driver.py ----------------------------------------===//

benchmark/scripts/test_compare_perf_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

44
# ===--- test_compare_perf_tests.py --------------------------------------===//

benchmark/scripts/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

44
# ===--- test_utils.py ---------------------------------------------------===//

include/swift/AST/ASTWalker.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#ifndef SWIFT_AST_ASTWALKER_H
1414
#define SWIFT_AST_ASTWALKER_H
1515

16+
#include "llvm/ADT/Optional.h"
1617
#include "llvm/ADT/PointerUnion.h"
1718
#include <utility>
1819

include/swift/AST/DiagnosticsParse.def

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,8 @@ ERROR(sil_invalid_column_in_sil_location,none,
528528
"column number must be a positive integer", ())
529529
ERROR(sil_invalid_scope_slot,none,
530530
"scope number must be a positive integer ", ())
531+
ERROR(sil_invalid_constant,none,
532+
"constant operand must be an integer literal ", ())
531533
ERROR(sil_scope_undeclared,none,
532534
"scope number %0 needs to be declared before first use", (unsigned))
533535
ERROR(sil_scope_redefined,none,

include/swift/AST/Identifier.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "swift/Basic/EditorPlaceholder.h"
2121
#include "swift/Basic/Debug.h"
2222
#include "swift/Basic/LLVM.h"
23+
#include "llvm/ADT/ArrayRef.h"
2324
#include "llvm/ADT/FoldingSet.h"
2425
#include "llvm/ADT/PointerUnion.h"
2526
#include "llvm/Support/TrailingObjects.h"

include/swift/AST/Module.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ class ModuleDecl
257257

258258
AccessNotesFile accessNotes;
259259

260+
/// Used by the debugger to bypass resilient access to fields.
261+
bool BypassResilience = false;
262+
260263
ModuleDecl(Identifier name, ASTContext &ctx, ImplicitImportInfo importInfo);
261264

262265
public:
@@ -290,6 +293,12 @@ class ModuleDecl
290293
AccessNotesFile &getAccessNotes() { return accessNotes; }
291294
const AccessNotesFile &getAccessNotes() const { return accessNotes; }
292295

296+
/// Return whether the module was imported with resilience disabled. The
297+
/// debugger does this to access private fields.
298+
bool getBypassResilience() const { return BypassResilience; }
299+
/// Only to be called by MemoryBufferSerializedModuleLoader.
300+
void setBypassResilience() { BypassResilience = true; }
301+
293302
ArrayRef<FileUnit *> getFiles() {
294303
assert(!Files.empty() || failedToLoad());
295304
return Files;

include/swift/AST/Ownership.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "llvm/Support/raw_ostream.h"
2727
#include <stdint.h>
2828
#include <assert.h>
29+
#include <climits>
2930

3031
namespace swift {
3132

include/swift/AST/TBDGenRequests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class TBDGenDescriptor final {
7070
const TBDGenOptions &getOptions() const { return Opts; }
7171
TBDGenOptions &getOptions() { return Opts; }
7272

73-
const llvm::DataLayout &getDataLayout() const;
73+
const StringRef getDataLayoutString() const;
7474
const llvm::Triple &getTarget() const;
7575

7676
bool operator==(const TBDGenDescriptor &other) const;

0 commit comments

Comments
 (0)