Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Merge Swift 5.1 branch into stable #1309

Merged
merged 1,890 commits into from Feb 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1890 commits
Select commit Hold shift + click to select a range
dd3b61e
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 16, 2019
f6b3600
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
adrian-prantl Jan 16, 2019
6fb2486
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 16, 2019
bedc751
Unbreak upstream-with-swift build
adrian-prantl Jan 16, 2019
75e96ea
Merge pull request #1214 from adrian-prantl/unbreak
adrian-prantl Jan 16, 2019
3a2fd60
Update to upstream changes.
adrian-prantl Jan 17, 2019
425d692
Update to upstream changes.
adrian-prantl Jan 17, 2019
d5c217d
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 17, 2019
32036e2
Recommit "Add a verbose mode to "image dump line-table" and use it to…
labath Jan 17, 2019
04467d7
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 17, 2019
8877b7f
Recommit "Teach the default symbol vendor to respect module.GetSymbol…
labath Jan 17, 2019
56c446c
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 17, 2019
397dd21
Merge branch 'stable' of github.com:apple/swift-lldb into upstream-wi…
adrian-prantl Jan 17, 2019
cb01d54
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 17, 2019
94edf17
[test] Fix the definition of getCompilerVersion().
Jan 17, 2019
6aed46a
Merge pull request #1218 from dcci/compiler-version
dcci Jan 17, 2019
d0f7e07
[CMake] Fix RPATH for repl
JDevlieghere Jan 17, 2019
0f8434a
Merge pull request #1219 from JDevlieghere/fix_repl_rpath
JDevlieghere Jan 17, 2019
6f7e2c7
[lit] Make sure tests are actually skipped on darwin and windows.
dcci Jan 17, 2019
631cb12
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 17, 2019
2fbb692
[lit] Add swift support to toolchain.py
JDevlieghere Jan 17, 2019
aff072e
Merge pull request #1223 from JDevlieghere/swift_toolchain
JDevlieghere Jan 17, 2019
f664bf1
[CMake] Fix lldb-test-depends target
JDevlieghere Jan 17, 2019
0da27e0
Don't run TestBreakpointThumbCodesection.py on darwin systems;
jasonmolenda Jan 17, 2019
e13a621
[lit] Add `-frontend` when expanding `%target-swift-frontend`.
Jan 17, 2019
030c02e
Merge pull request #1224 from dcci/targetexpansion
dcci Jan 17, 2019
f99335c
[unittests] Fix TestSwiftASTContext
JDevlieghere Jan 17, 2019
79b5606
Merge pull request #1225 from JDevlieghere/fix_unittest
JDevlieghere Jan 17, 2019
79e86bc
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 17, 2019
5b71a1e
[CMake] Prevent lldbDebugserverCommon from building if you disable de…
bulbazord Jan 17, 2019
0e86688
[lit] Fix lldbtest format
JDevlieghere Jan 17, 2019
60e10ce
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 17, 2019
ccee943
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
JDevlieghere Jan 17, 2019
462425a
[CMake] Only test debugserver if platform can use debugserver
bulbazord Jan 18, 2019
99b4828
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 18, 2019
03fbfaf
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 18, 2019
4122d1e
[Reproducers] Refactor reproducer info
JDevlieghere Jan 18, 2019
e301786
[tests] XFAIL tests
JDevlieghere Jan 18, 2019
e703cca
Merge pull request #1228 from JDevlieghere/xfail_tests
JDevlieghere Jan 18, 2019
82ee45f
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 18, 2019
0c9db04
[tests] Re-enable unexpected successes
JDevlieghere Jan 18, 2019
8b91ac2
Merge pull request #1229 from JDevlieghere/reenable_tests
JDevlieghere Jan 18, 2019
2d6e2d6
Use llvm::VersionTuple instead of manual version marshalling
brad0 Jan 18, 2019
96edaa0
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 18, 2019
102c0f4
[Reproducers] Fix reproducers unittest.
JDevlieghere Jan 18, 2019
46578c5
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 18, 2019
d3138a4
Breakpad: Extract parsing code into a separate file
labath Jan 18, 2019
39aecaa
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 18, 2019
2bfa129
Make sure to fill in the compiler register number so when we try to b…
Jan 18, 2019
721b8ab
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 18, 2019
1593f33
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 18, 2019
d0642af
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 18, 2019
f031f20
Add BreakpadRecords to the Xcode project.
jimingham Jan 18, 2019
383aaba
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 18, 2019
e3e1019
[tests] Re-enable unexpected successes
JDevlieghere Jan 18, 2019
a1d1699
[dotest] Add logging to investigate CI issue.
JDevlieghere Jan 18, 2019
790f8df
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 18, 2019
2a24e44
Install new LLVM license structure and new developer policy.
chandlerc Jan 19, 2019
9a52ef0
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 19, 2019
76c0545
Update the file headers across all of the LLVM projects in the monorepo
chandlerc Jan 19, 2019
dd35fcc
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 19, 2019
e97f32f
Fix order of arguments in an lldb type summary in examples
lanza Jan 19, 2019
7e3f4d4
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 19, 2019
d4a32a1
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 20, 2019
fe5bc7d
Try to port tests to AST dump changes
steveire Jan 20, 2019
18dd81c
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 20, 2019
ed725e2
Fix test after AST dump output change
steveire Jan 20, 2019
51b3e9d
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 20, 2019
770fe10
Fix typos throughout the license files that somehow I and my reviewers
chandlerc Jan 21, 2019
389a65b
Fix test after AST dump output change
steveire Jan 21, 2019
a5bf5b4
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 21, 2019
e29cec1
Fix test after AST dump output change
steveire Jan 21, 2019
698f98c
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 21, 2019
b508641
[Test] Fix up tests affected by the new LLVM header.
JDevlieghere Jan 22, 2019
fa5f1fe
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 22, 2019
3e5c842
breakpad: Add FUNC records to the symtab
labath Jan 22, 2019
b60dbc2
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 22, 2019
4f0f504
[CMake] Turn LLDB_FRAMEWORK_TOOLS into STRING to allow overrides from…
weliveindetail Jan 22, 2019
9c118a9
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
weliveindetail Jan 22, 2019
705f0ef
[CMake] Replace use of llvm-config with LLVM and Clang CMake packages
bulbazord Jan 22, 2019
e14c862
[CMake] Fix two details from r351863
weliveindetail Jan 22, 2019
53d6507
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
weliveindetail Jan 22, 2019
f4bc130
Revert "[dotest] Add logging to investigate CI issue."
JDevlieghere Jan 23, 2019
c5997d4
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 23, 2019
4c40d6a
[CMake] Fix LLVMConfig.cmake not found
weliveindetail Jan 23, 2019
03f3aad
[CMake] Fix LLVM_EXTERNAL_LIT path does not exist
weliveindetail Jan 23, 2019
ced8eb0
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 24, 2019
d2266bf
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 24, 2019
a834f88
Skip test on clang <8 instead of 7
adrian-prantl Jan 24, 2019
2f87310
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 24, 2019
466a6be
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 24, 2019
a57d487
BreakpadRecords: Address post-commit feedback
labath Jan 24, 2019
9f3aaab
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 24, 2019
d24f490
Fix potential ODR vialation.
hokein Jan 24, 2019
9d9e206
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 24, 2019
f78a8dd
[CMake] Fix include file OptParser.td not found
weliveindetail Jan 24, 2019
bbda06e
[CMake] Get back some variables used in AddLLVM.cmake
weliveindetail Jan 24, 2019
4cb8d4d
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
weliveindetail Jan 24, 2019
1e04c5c
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 24, 2019
ddab4f4
Add decorator support for the DWARF version produced by the compiler
adrian-prantl Jan 24, 2019
83c3640
Rename test directory
adrian-prantl Jan 24, 2019
ff8a3fa
Merge remote-tracking branch 'mirror/master' into upstream-with-swift
JDevlieghere Jan 24, 2019
1327734
[CMake] Remove duplicated cache variable. NFC.
bulbazord Jan 24, 2019
3df0da2
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 24, 2019
f9b58ac
Unbreak windows bots
adrian-prantl Jan 24, 2019
f94ac3f
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 24, 2019
d3a5d35
Only check the dwarf version when using the dwarf category
adrian-prantl Jan 24, 2019
575eaea
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 24, 2019
92ae274
[Scalar] Clarify the constructor from APInt and document through a test.
dcci Jan 24, 2019
1bb4d61
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 24, 2019
0b8aacc
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
JDevlieghere Jan 24, 2019
d586e7e
Remove NO_DEBUGINFO_TESTCASE from testcase.
adrian-prantl Jan 24, 2019
7d9faf4
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 24, 2019
0eea6b7
Add unittests to the Xcode gtest target.
jimingham Jan 24, 2019
adc0bd2
[Process/NetBSD] Add missing linkage to -lutil
mgorny Jan 24, 2019
189f632
Merge remote-tracking branch 'svn/master' into upstream-with-swift
jasonmolenda Jan 24, 2019
5be9415
Add UUID::SetFromOptionalStringRef, use it in DynamicLoaderDarwin
jimingham Jan 24, 2019
dd247a1
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 24, 2019
6e6d863
Remove a warning in DynamicLoaderDarwin::UpdateImageLoadAddress
jasonmolenda Jan 25, 2019
17ea934
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 25, 2019
26c0d17
Define the _fltused symbol in one lldb test as well, post-r352076.
jyknight Jan 25, 2019
9154e89
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 25, 2019
de953c9
Refactor HAVE_LIBCOMPRESSION and related code in GDBRemoteCommunication
Teemperor Jan 25, 2019
fe42817
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 25, 2019
682882c
Fix typo in ClangModulesDeclVendor [NFC]
Teemperor Jan 25, 2019
f1a827e
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 25, 2019
48f9acd
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 25, 2019
2057f8d
ResolveBreakpointSite: fix outdated warning message
tkrasnukha Jan 25, 2019
225e85a
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 25, 2019
809ab03
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 25, 2019
8679702
[CMake] Use llvm-tblgen from NATIVE LLVM build when cross-compiling
bulbazord Jan 25, 2019
c23acee
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 25, 2019
c12bb07
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 25, 2019
340fc3f
Simplify LangOpts initalization in ClangExpressionParser [NFC]
Teemperor Jan 25, 2019
0f93a8c
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 25, 2019
9991c45
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 26, 2019
3940626
[lldb] Update shebang python2 -> python
JDevlieghere Jan 26, 2019
47e506b
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 26, 2019
d8e9e67
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 26, 2019
9eac477
[cmake] Fix get_llvm_lit_path() to respect LLVM_EXTERNAL_LIT always
mgorny Jan 28, 2019
0897192
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 28, 2019
0bf15df
[CMake] Quick-Fix targets don't exist when building against LLVM inst…
weliveindetail Jan 28, 2019
5c43c12
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 28, 2019
dcc1684
[CMake] Dump LLDB.framework tools at configuration time
weliveindetail Jan 28, 2019
1d07260
[CMake] Add code signing for lldb-server on iOS
weliveindetail Jan 28, 2019
d914850
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 28, 2019
d063881
Make Type::GetByteSize optional (NFC)
adrian-prantl Jan 28, 2019
c107d33
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 28, 2019
da843b1
[testsuite] Remove trailing characters from command output.
JDevlieghere Jan 28, 2019
cc621c7
[testsuite] Remove unused seven module imports.
JDevlieghere Jan 28, 2019
40442f0
Merge branch 'master' of https://llvm.org/git/lldb into upstream-with…
adrian-prantl Jan 28, 2019
2c6e0e7
Remove unimplemented function
adrian-prantl Jan 28, 2019
47d71ef
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 28, 2019
89872ad
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
JDevlieghere Jan 28, 2019
6eb7fec
Revert "Make Type::GetByteSize optional (NFC)"
adrian-prantl Jan 28, 2019
78bcf47
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 28, 2019
44d6517
Don't return +ubsan from build_dir_san_suffix when building with
jasonmolenda Jan 28, 2019
8e5361b
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 29, 2019
8518d31
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 29, 2019
27d8543
[NativePDB] Add basic support of methods recostruction in AST
Jan 29, 2019
b215645
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 29, 2019
8283ba2
[NativePDB] Fix lldb-x64-windows-ninja after r352464
Jan 29, 2019
5577e85
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 29, 2019
7c06f5b
[CMake] Collect option settings for future CMake cache files and mino…
weliveindetail Jan 24, 2019
1a39497
BreakpadRecords: Add parsing code for FILE and LINE records
labath Jan 29, 2019
231c099
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 29, 2019
4975e95
Adjust documentation for git migration.
jyknight Jan 29, 2019
c6241b4
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 29, 2019
0e6825f
Make Type::GetByteSize optional (NFC)
adrian-prantl Jan 29, 2019
f61a871
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 29, 2019
f1547e2
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 29, 2019
ba22da9
[Reproducers] Add file provider
JDevlieghere Jan 29, 2019
270377d
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 29, 2019
950599c
Make a blind attempt at fixing PDBASTParser nullability issues
adrian-prantl Jan 29, 2019
729fc87
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 29, 2019
126c7e6
[test] Use correct macro in FileCollectorTest.cpp
JDevlieghere Jan 29, 2019
ccb206b
Fix some warnings in building LLDB.
Jan 29, 2019
ccfe3a0
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 29, 2019
ae3769e
Add FileCollector + test to Xcode project.
JDevlieghere Jan 29, 2019
976f282
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 29, 2019
9c4ae44
[CMake] Accept entitlements for code signing in add_lldb_library()
weliveindetail Jan 30, 2019
d432ce2
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 30, 2019
2e37e60
[CMake] Enable LLDB_BUILD_FRAMEWORK only on Apple platforms
weliveindetail Jan 30, 2019
f1beb56
[Scalar] Implement support for 512-bit values.
dcci Jan 30, 2019
d7d9b8c
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 30, 2019
96051f1
[Scalar] Hoist a duplicated (and sometimes wrong) comment.
dcci Jan 30, 2019
c192093
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 30, 2019
9864b33
[Scalar] Remove partially wrong and unused functions.
dcci Jan 30, 2019
3c13078
Add LLDB website and documentation in reStructuredText for Sphinx
JDevlieghere Jan 30, 2019
a729bc5
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 30, 2019
489d790
Fix handling of CreateTemplateParameterList when there is an empty pack
shafik Jan 30, 2019
1e40eb0
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 30, 2019
1423413
Add lldb-docs target to Xcode project
JDevlieghere Jan 30, 2019
5b93dd3
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 30, 2019
17927df
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
JDevlieghere Jan 31, 2019
7958569
[Python] String(s) and bytes are two different entities in 3.7.
dcci Jan 31, 2019
8da7372
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 31, 2019
9257348
Add another test to TestSwiftGenericExtension.py.
jasonmolenda Jan 31, 2019
d7d93fc
Add Sphinx generated html files as output to the build phase.
JDevlieghere Jan 31, 2019
c532032
[Python] Python 2 and Python 3 disagree on `/`.
dcci Jan 31, 2019
37b4d53
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 31, 2019
a7551c8
[Python] Fix gdb-remote and lldb-server utilities to work with Py3.
dcci Jan 31, 2019
a0ad73f
[testsuite] Fix TestAppleSimulator so that it works with Python 3.
dcci Jan 31, 2019
9af4f5f
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 31, 2019
25b3992
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 31, 2019
3dcaf66
[CMake] Migrate lldb to the new VCS script
petrhosek Jan 31, 2019
22928d2
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 31, 2019
ae4c957
Revert "[CMake] Unify scripts for generating VCS headers"
petrhosek Jan 31, 2019
055720b
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 31, 2019
7e15552
[LLDB] FreeBSD suppress compilation warning
devnexen Jan 31, 2019
9df9bc8
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 31, 2019
cf4db88
Fix use of non-existing variable in crashlog.py
shafik Jan 31, 2019
d8f1aef
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 31, 2019
fa144e4
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 31, 2019
24f601b
Merge remote-tracking branch 'origin/stable' into upstream-with-swift
swift-ci Jan 31, 2019
501f136
[unittest] Fix scalar unit test.
JDevlieghere Jan 31, 2019
f968783
Merge remote-tracking branch 'llvm/master' into upstream-with-swift
swift-ci Jan 31, 2019
e64a780
Manually add system libc++ header directory to the include path
fredriss Feb 12, 2019
04c1861
[dotest] Add some more paths alternatives to the search path for the …
fredriss Feb 12, 2019
c83c892
Fix the path to llvm-tblgen in the Xcode project.
fredriss Feb 12, 2019
d28ba33
[Xcode project] Find llvm-tblgen in more places.
fredriss Feb 12, 2019
f217c8d
[Xcode project] Add some logging to the llvm-tblgen invocation
fredriss Feb 12, 2019
0b5819e
[Xcode project] Use a different variable to access to LLVM sources, h…
fredriss Feb 13, 2019
1dc67e9
[Xcode project] Fix path to LLVM libraries
fredriss Feb 13, 2019
8ae8d52
[Xcode project] Fix the path to yaml2obj
fredriss Feb 13, 2019
762752f
Add a 5.1 branch config file
fredriss Feb 13, 2019
e7163eb
[Xcode project] Fix some paths
fredriss Feb 13, 2019
080b1cd
[Swift] Disable round-trip verification of debug types from the expre…
slavapestov Feb 5, 2019
e0bf9ca
[TestLoadUnload] Disable this test, was reenabled by mistake.
Feb 13, 2019
a1aa18c
Merge pull request #1293 from dcci/newbranch-bringup
dcci Feb 13, 2019
49bf5ed
[CMake] Make lldb-test-deps a dependency of check-lldb
JDevlieghere Feb 13, 2019
2cefcdd
Remove incorrect XFAIL
fredriss Feb 13, 2019
c0be646
SWIFTC might not always be set, fallback in the same way the Makefile…
fredriss Feb 14, 2019
afa376e
Use LLDB_LIB_DIR to locate the lldb binary
fredriss Feb 14, 2019
c0240cc
[SwiftASTContext] Move LoadOneModule back into implementation
JDevlieghere Feb 14, 2019
7d88dbe
Merge pull request #1295 from JDevlieghere/lldb_layering_violation
adrian-prantl Feb 14, 2019
63b642a
[dotest] Fix compiler version number comparison
fredriss Feb 14, 2019
681512b
Merge remote-tracking branch 'origin/stable' into swift-5.1-branch
fredriss Feb 15, 2019
0d4b7c4
Merge remote-tracking branch 'origin/stable' into swift-5.1-branch
fredriss Feb 18, 2019
5857a9f
[CMake] Fix 'could not find load file: SwiftAddCustomCommandTarget'
weliveindetail Feb 18, 2019
04fd8ac
Merge pull request #1307 from weliveindetail/swift-5.1-branch
weliveindetail Feb 18, 2019
425060e
Make RemapClangImporterOptions more robust.
adrian-prantl Feb 15, 2019
5b094c2
Merge pull request #1302 from adrian-prantl/48078809
adrian-prantl Feb 19, 2019
bf59ea8
[SwiftLanguageRuntime] Explicitly disable reflection setup on ELF.
Feb 19, 2019
6b5ce3e
Revert "Use LLDB_LIB_DIR to locate the lldb binary"
Feb 19, 2019
a76c528
Merge pull request #1310 from dcci/swift-5.1-branch-merge
dcci Feb 19, 2019
e02a2c5
[lldb-testsuite] Re-enable TestSwiftAnyType on Linux.
Feb 20, 2019
ed8823a
Merge pull request #1311 from dcci/reenableanytype-51
dcci Feb 20, 2019
9fe1725
Temporarily disable TestGDBRemoteRepro while we investigate.
Feb 20, 2019
c0a693c
Merge pull request #1312 from dcci/gdbrepro-temp
dcci Feb 20, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
145 changes: 58 additions & 87 deletions CMakeLists.txt
Expand Up @@ -12,7 +12,7 @@ include(LLDBConfig)
include(AddLLDB)

# BEGIN - Swift Mods
if(NOT LLDB_BUILT_STANDALONE AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../swift)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../swift)
list(APPEND CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/../swift/cmake"
"${CMAKE_CURRENT_SOURCE_DIR}/../swift/cmake/modules")
Expand All @@ -26,15 +26,6 @@ else()
add_definitions( -DLLDB_CONFIGURATION_RELEASE )
endif()

if (CMAKE_SYSTEM_NAME MATCHES "Windows|Android")
set(LLDB_DEFAULT_DISABLE_LIBEDIT 1)
else()
set(LLDB_DEFAULT_DISABLE_LIBEDIT 0)
endif ()

# We need libedit support to go down both the source and
# the scripts directories.
set(LLDB_DISABLE_LIBEDIT ${LLDB_DEFAULT_DISABLE_LIBEDIT} CACHE BOOL "Disables the use of editline.")
if (LLDB_DISABLE_LIBEDIT)
add_definitions( -DLLDB_DISABLE_LIBEDIT )
else()
Expand All @@ -45,66 +36,22 @@ if(APPLE)
add_definitions(-DLLDB_USE_OS_LOG)
endif()

# lldb-suite is a dummy target that encompasses all the necessary tools and
# libraries for building a fully-functioning liblldb.
add_custom_target(lldb-suite)
set(LLDB_SUITE_TARGET lldb-suite)

option(LLDB_BUILD_FRAMEWORK "Build the Darwin LLDB.framework" Off)
if(LLDB_BUILD_FRAMEWORK)
if (CMAKE_VERSION VERSION_LESS 3.7)
message(FATAL_ERROR "LLDB_BUILD_FRAMEWORK is not supported on CMake < 3.7")
endif()
if (NOT APPLE)
message(FATAL_ERROR "LLDB.framework can only be generated when targeting Apple platforms")
endif()

add_custom_target(lldb-framework)
# These are used to fill out LLDB-Info.plist. These are relevant when building
# the framework, and must be defined before building liblldb.
set(PRODUCT_NAME "LLDB")
set(EXECUTABLE_NAME "LLDB")
set(CURRENT_PROJECT_VERSION "360.99.0")
set(LLDB_SUITE_TARGET lldb-framework)

set(LLDB_FRAMEWORK_DIR
${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${LLDB_FRAMEWORK_INSTALL_DIR})
include(LLDBFramework)
endif()

add_subdirectory(docs)
if (NOT LLDB_DISABLE_PYTHON)
if(LLDB_USE_SYSTEM_SIX)
set(SIX_EXTRA_ARGS "--useSystemSix")
endif()

set(LLDB_PYTHON_TARGET_DIR ${LLDB_BINARY_DIR}/scripts)
set(LLDB_WRAP_PYTHON ${LLDB_BINARY_DIR}/scripts/LLDBWrapPython.cpp)
if(LLDB_BUILD_FRAMEWORK)
set(LLDB_PYTHON_TARGET_DIR ${LLDB_FRAMEWORK_DIR})
set(LLDB_WRAP_PYTHON ${LLDB_PYTHON_TARGET_DIR}/LLDBWrapPython.cpp)
else()
# Don't set -m when building the framework.
set(FINISH_EXTRA_ARGS "-m")
endif()


add_subdirectory(scripts)
endif ()

add_subdirectory(source)
add_subdirectory(tools)

option(LLDB_INCLUDE_TESTS "Generate build targets for the LLDB unit tests."
${LLVM_INCLUDE_TESTS})
option(LLDB_INCLUDE_TESTS "Generate build targets for the LLDB unit tests." ${LLVM_INCLUDE_TESTS})
option(LLDB_TEST_USE_CUSTOM_C_COMPILER "Use the C compiler provided via LLDB_TEST_C_COMPILER for building test inferiors (instead of the just-built compiler). Defaults to OFF." OFF)
option(LLDB_TEST_USE_CUSTOM_CXX_COMPILER "Use the C++ compiler provided via LLDB_TEST_CXX_COMPILER for building test inferiors (instead of the just-built compiler). Defaults to OFF." OFF)
if(LLDB_INCLUDE_TESTS)

# The difference between the following two paths is significant. The path to
# LLDB will point to LLDB's binary directory, while the other will point to
# LLVM's binary directory in case the two differ.
# Set the path to the default lldb test executable.
set(LLDB_DEFAULT_TEST_EXECUTABLE "${LLVM_RUNTIME_OUTPUT_INTDIR}/lldb${CMAKE_EXECUTABLE_SUFFIX}")

# Set the paths to default llvm tools.
set(LLDB_DEFAULT_TEST_DSYMUTIL "${LLVM_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin/dsymutil${CMAKE_EXECUTABLE_SUFFIX}")
set(LLDB_DEFAULT_TEST_FILECHECK "${LLVM_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin/FileCheck${CMAKE_EXECUTABLE_SUFFIX}")

Expand Down Expand Up @@ -136,9 +83,7 @@ if(LLDB_INCLUDE_TESTS)
endif()

if(TARGET debugserver)
if(NOT CMAKE_HOST_APPLE OR LLDB_CODESIGN_IDENTITY)
list(APPEND LLDB_TEST_DEPS debugserver)
endif()
list(APPEND LLDB_TEST_DEPS debugserver)
endif()

if(TARGET lldb-mi)
Expand All @@ -153,73 +98,99 @@ if(LLDB_INCLUDE_TESTS)
list(APPEND LLDB_TEST_DEPS liblldb)
endif()

# Add dependencies if we test with the in-tree clang.
# This works with standalone builds as they import the clang target.
if(TARGET clang)
list(APPEND LLDB_TEST_DEPS clang)
if(APPLE)
# If we build clang, we should build libcxx.
# FIXME: Standalone builds should import the cxx target as well.
if(LLDB_BUILT_STANDALONE)
# For now check that the include directory exists.
set(cxx_dir "${LLVM_BINARY_DIR}/include/c++")
if(NOT EXISTS ${cxx_dir})
message(WARNING "LLDB test suite requires libc++ in llvm/projects/libcxx or an existing build symlinked to ${cxx_dir}")
endif()
else()
list(APPEND LLDB_TEST_DEPS cxx)
endif()
endif()
endif()

if(TARGET dsymutil)
list(APPEND LLDB_TEST_DEPS dsymutil)
endif()

add_custom_target(lldb-test-deps DEPENDS ${LLDB_TEST_DEPS})

add_subdirectory(test)
add_subdirectory(unittests)
add_subdirectory(lit)
add_subdirectory(utils/lldb-dotest)
endif()


if (NOT LLDB_DISABLE_PYTHON)
if(NOT LLDB_BUILD_FRAMEWORK)
set(use_python_wrapper_from_src_dir -m)
endif()
if(LLDB_USE_SYSTEM_SIX)
set(use_six_py_from_system --useSystemSix)
endif()
get_target_property(lldb_scripts_dir swig_wrapper BINARY_DIR)
get_target_property(liblldb_build_dir liblldb LIBRARY_OUTPUT_DIRECTORY)

# Add a Post-Build Event to copy over Python files and create the symlink
# to liblldb.so for the Python API(hardlink on Windows)
if (APPLE)
# FIXME. This replicates the xcode project. We should probably
# get rid of this special path and use the same script that
# every other platform is using.
# FIXME: This replicates the Xcode project. It was the original way of
# finalizing the swig generator step. We should get rid of this special
# path and use the same script that every other platform is using. For
# the time being, the arguments are:
# 1) path to lldb source tree
# 2) path to lldb framework/shared library
# 3) path to lldb.py
# 4) not relevant on Darwin
# 5) additional flags
add_custom_target(finish_swig ALL
COMMAND
${CMAKE_CURRENT_SOURCE_DIR}/scripts/finish-swig-wrapper-classes.sh
${LLDB_SOURCE_DIR}/scripts/finish-swig-wrapper-classes.sh
${LLDB_SOURCE_DIR}
${LLDB_PYTHON_TARGET_DIR}
${LLDB_PYTHON_TARGET_DIR}
${liblldb_build_dir}
${lldb_scripts_dir}
""
${use_python_wrapper_from_src_dir}
VERBATIM
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/finishSwigWrapperClasses.py
DEPENDS ${LLDB_PYTHON_TARGET_DIR}/lldb.py
DEPENDS ${LLDB_SOURCE_DIR}/scripts/finishSwigWrapperClasses.py
DEPENDS ${lldb_scripts_dir}/lldb.py
COMMENT "Python script sym-linking LLDB Python API")
else()
add_custom_target(finish_swig ALL
COMMAND
${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/finishSwigWrapperClasses.py
${PYTHON_EXECUTABLE} ${LLDB_SOURCE_DIR}/scripts/finishSwigWrapperClasses.py
--srcRoot=${LLDB_SOURCE_DIR}
--targetDir=${LLDB_PYTHON_TARGET_DIR}
--cfgBldDir=${LLDB_PYTHON_TARGET_DIR}
--targetDir=${liblldb_build_dir}
--cfgBldDir=${lldb_scripts_dir}
--prefix=${CMAKE_BINARY_DIR}
--cmakeBuildConfiguration=${CMAKE_CFG_INTDIR}
--lldbLibDir=lib${LLVM_LIBDIR_SUFFIX}
${SIX_EXTRA_ARGS}
${FINISH_EXTRA_ARGS}
${use_python_wrapper_from_src_dir}
${use_six_py_from_system}
VERBATIM
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/finishSwigWrapperClasses.py
DEPENDS ${LLDB_PYTHON_TARGET_DIR}/lldb.py
DEPENDS ${LLDB_SOURCE_DIR}/scripts/finishSwigWrapperClasses.py
DEPENDS ${lldb_scripts_dir}/lldb.py
COMMENT "Python script sym-linking LLDB Python API")
endif()

# We depend on liblldb and lldb-argdumper being built before we can do this step.
add_dependencies(finish_swig ${LLDB_SUITE_TARGET})

# If we build the readline module, we depend on that happening
# first.
if (TARGET readline)
add_dependencies(finish_swig readline)
set(readline_dep readline)
endif()
add_dependencies(finish_swig swig_wrapper liblldb lldb-argdumper ${readline_dep})

# Ensure we do the python post-build step when building lldb.
add_dependencies(lldb finish_swig)

if (LLDB_BUILD_FRAMEWORK)
# The target to install libLLDB needs to depend on finish_swig so that the
# framework build properly copies over the Python files.
add_dependencies(install-liblldb finish_swig)
if(LLDB_BUILD_FRAMEWORK)
add_dependencies(lldb-framework finish_swig)
endif()

# Add a Post-Build Event to copy the custom Python DLL to the lldb binaries dir so that Windows can find it when launching
Expand Down