SuccessChanges

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. Fix `-Wunused-variable` warning. NFC. (details)
  2. Fix Wpedantic 'extra semicolon' warning. NFC. (details)
  3. Fix "result of 32-bit shift implicitly converted to 64 bits" warning. (details)
  4. [lld][RISCV] Use an e_flags of 0 if there are only binary input files. (details)
  5. [NFC] test commit (details)
  6. [NFC] test commit reverted (details)
  7. [analyzer] exploded-graph-rewriter: Fix string encodings in python3. (details)
  8. [Lldb/Lua] Generate Lua Bindings (details)
  9. [lldb][NFC] Return a reference from ClangASTContext::getASTContext and (details)
  10. [lldb] Fix windows build after getASTContext() change (details)
  11. [Lldb/Lua] Persist Lua state across script interpreter calls. (details)
  12. [lldb/Core] Support asking the debugger for a specific script (details)
  13. [lldb/Commands] Fix bogus enum entry and add Lua (NFC) (details)
  14. [lldb/Commands] Honor the scripting language passed (details)
  15. [NFC] Separate getLastArgIntValue to Basic (details)
  16. [gn build] fold Basic:version into Basic (details)
  17. [lldb/Commands] Use the default scripting langauge for BP functions (details)
  18. [gn build] fixup after c3d13d9c56 (details)
  19. [gn build] Port 7376d9eb389 (details)
Commit 7cee28858674d233903e92b7a0c49b07b05ed3d3 by michael.hliao
Fix `-Wunused-variable` warning. NFC.
The file was modifiedclang/lib/Sema/SemaDeclObjC.cpp
Commit d76202d3e3572aca7e36db90cfd5ba703bc4d415 by llvm-dev
Fix Wpedantic 'extra semicolon' warning. NFC.
The file was modifiedllvm/unittests/CodeGen/GlobalISel/LegalizerTest.cpp
Commit 6945d383b9e8ca1b38442f06726d770676fe5856 by llvm-dev
Fix "result of 32-bit shift implicitly converted to 64 bits" warning.
NFC.
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
Commit 189b7393d545330fae6b84e9a140d34e09eb634e by jrtc27
[lld][RISCV] Use an e_flags of 0 if there are only binary input files.
Summary: If none of the input files are ELF object files (for example,
when generating an object file from a single binary input file via
"-b binary"), use a fallback value for the ELF header flags instead of
crashing with an assertion failure.
Reviewers: MaskRay, ruiu, espindola
Reviewed By: MaskRay, ruiu
Subscribers: kevans, grimar, emaste, arichardson, asb, rbar, johnrusso,
simoncook, sabuasal, niosHD, kito-cheng, shiva0217, zzheng,
edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX,
jocewei, psnobl, benna, Jim, lenary, s.egerton, pzheng, sameer.abuasal,
apazos, luismarques, llvm-commits, jrtc27
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D71101
The file was addedlld/test/ELF/riscv-elf-flags.s
The file was modifiedlld/ELF/Arch/RISCV.cpp
Commit 452ca8e73f26835f94bb3e274adb210d3c3ed5ea by ml
[NFC] test commit
The file was modifiedclang/README.txt
Commit fc5102fb6e3d4744c2bb9f0230d088a9777e69cb by ml
[NFC] test commit reverted
The file was modifiedclang/README.txt
Commit 2203089a60d826e882e2ccfc5cc5d361b4f91078 by Artem Dergachev
[analyzer] exploded-graph-rewriter: Fix string encodings in python3.
Makes sure that the script works fine both in python2 and python3.
Patch by Pavel Samolysov!
Differential Revision: https://reviews.llvm.org/D71746
The file was modifiedclang/utils/analyzer/exploded-graph-rewriter.py
Commit bf03e17c570171c7a52117fe63ace89d58f328d5 by Jonas Devlieghere
[Lldb/Lua] Generate Lua Bindings
This patch uses SWIG to generate the Lua bindings for the SB API. It
covers most of the API, but some methods require a type map similar to
Python.
Discussion on the mailing list:
http://lists.llvm.org/pipermail/lldb-dev/2019-December/015812.html
Differential revision: https://reviews.llvm.org/D71235
The file was modifiedlldb/scripts/CMakeLists.txt
The file was modifiedlldb/source/API/CMakeLists.txt
The file was addedlldb/scripts/lldb_lua.swig
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Lua/CMakeLists.txt
The file was addedlldb/test/Shell/ScriptInterpreter/Lua/bindings.test
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Lua/Lua.h
The file was modifiedlldb/unittests/ScriptInterpreter/Lua/LuaTests.cpp
The file was modifiedlldb/CMakeLists.txt
Commit f9f49d3594bc7584cc5cb96125ca08f2ad97662c by Raphael Isemann
[lldb][NFC] Return a reference from ClangASTContext::getASTContext and
remove dead nullptr checks
ClangASTContext::getASTContext() currently returns a ptr but we have an
assert there since a while that the ASTContext is not a nullptr. This
causes that we still have a lot of code that is doing nullptr checks on
the result of getASTContext() which is all unreachable code.
This patch changes the return value to a reference to make it clear this
can't be a nullptr and deletes all the nullptr checks.
The file was modifiedlldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp
The file was modifiedlldb/unittests/Expression/ClangExpressionDeclMapTest.cpp
The file was modifiedlldb/unittests/Symbol/TestClangASTContext.cpp
The file was modifiedlldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
The file was modifiedlldb/source/Symbol/ClangASTImporter.cpp
The file was modifiedlldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
The file was modifiedlldb/source/Plugins/Language/ObjC/NSArray.cpp
The file was modifiedlldb/tools/lldb-test/lldb-test.cpp
The file was modifiedlldb/unittests/Symbol/TestClangASTImporter.cpp
The file was modifiedlldb/unittests/TestingSupport/Symbol/ClangTestUtils.h
The file was modifiedlldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
The file was modifiedlldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp
The file was modifiedlldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.cpp
The file was modifiedlldb/source/Symbol/ClangASTContext.cpp
The file was modifiedlldb/include/lldb/Symbol/ClangASTContext.h
Commit ceb433ad162bac35888303d29d34dc2609974d92 by Raphael Isemann
[lldb] Fix windows build after getASTContext() change
The file was modifiedlldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp
Commit 4164be7206d740b77b5a7b4b2f859ed122d08c10 by Jonas Devlieghere
[Lldb/Lua] Persist Lua state across script interpreter calls.
Don't create a new lua state on every operation. Share a single state
across the lifetime of the script interpreter. Add simple locking to
prevent two threads from modifying the state concurrently.
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Lua/Lua.h
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp
The file was addedlldb/test/Shell/ScriptInterpreter/Lua/persistent_state.test
Commit bbf70c046789f4403a9c02fc5558708ef19073cf by Jonas Devlieghere
[lldb/Core] Support asking the debugger for a specific script
interpreter
Rather than holding on to one script interpreter, it should be possible
to request a script interpreter for a specific scripting language. The
GetScriptInterpreter method now takes an optional scripting language
argument.
(NFC)
The file was modifiedlldb/source/Core/Debugger.cpp
The file was modifiedlldb/include/lldb/Core/Debugger.h
Commit 8983d69144d14d6477c377bb91e9c7224e32f753 by Jonas Devlieghere
[lldb/Commands] Fix bogus enum entry and add Lua (NFC)
Fixes a bogus enum value for the scripting language options, adds an
entry for Lua and refactored the code to use an exhaustive switch.
The file was modifiedlldb/source/Commands/CommandObjectBreakpointCommand.cpp
Commit 5e32eb1c7a816a1902f6229f7a1f9da92678f451 by Jonas Devlieghere
[lldb/Commands] Honor the scripting language passed
This ensures that breakpoint command honors the scripting language
passed with `-s`. Currently the argument ignores the actual language and
only uses it to differentiate between lldb and script commands.
The file was addedlldb/test/Shell/ScriptInterpreter/Python/scripted_breakpoint.test
The file was modifiedlldb/source/Commands/CommandObjectBreakpointCommand.cpp
Commit 7376d9eb38914ff7b6b5f5901d32743f0ee76b5a by Yaxun.Liu
[NFC] Separate getLastArgIntValue to Basic
getLastArgIntValue is a useful utility function to get command line
argument as an integer. Currently it is in Frontend so that it can only
be used by clang -cc1. Move it to basic so that it can also be used by
clang driver.
Differential Revision: https://reviews.llvm.org/D71080
The file was addedclang/include/clang/Basic/OptionUtils.h
The file was modifiedclang/lib/Basic/CMakeLists.txt
The file was modifiedclang/include/clang/Frontend/Utils.h
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was addedclang/lib/Basic/OptionUtils.cpp
Commit c3d13d9c563babb94c6d1f40d28d24f193cabe6f by thakis
[gn build] fold Basic:version into Basic
This now defines HAVE_VCS_VERSION_INC for all files in Basic, but now
the BUILD.gn file has only a single "sources" field again, and the
automerger requires that. Having the automerger work for clang/lib/Basic
is a very nice to have, and the downside seems tiny.
The file was modifiedllvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
Commit 1ff01cfe3ea51f873ff91ed66e1b8157583c6aa1 by Jonas Devlieghere
[lldb/Commands] Use the default scripting langauge for BP functions
When a function is used as a breakpoint command, use to the debugger's
default scripting language, unless a language is explicitly specified.
The file was modifiedlldb/source/Commands/CommandObjectBreakpointCommand.cpp
Commit 541a34274289de21ad65780ae63602436d0646b6 by thakis
[gn build] fixup after c3d13d9c56
The file was modifiedllvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
Commit 0fe131aebb4a43ca1017d8e703930058325e3bf3 by llvmgnsyncbot
[gn build] Port 7376d9eb389
The file was modifiedllvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn