Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Apply Rust patches on release/8.x #1

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
865c1f7
Add accessors for MCSubtargetInfo CPU and Feature tables
bitshifter Jul 10, 2016
122c3dc
Fix compile on dist-i686-linux builder
alexcrichton Jul 28, 2017
b73884a
Disable checks for libatomic for now
alexcrichton Jan 24, 2018
392947a
Add knowledge of __rust_{alloc,realloc,dealloc}
nagisa Jun 3, 2017
bd18bd8
Fix compile on dist-x86_64-linux builder
alexcrichton Jul 2, 2018
b1ec4cb
Compile with /MT on MSVC
alexcrichton Feb 11, 2018
1ecf8ed
Add Rust support to Mangled
tromey Jun 25, 2018
9fa3339
Add DIERef::operator==
tromey Jun 25, 2018
e6a7452
Add a missing TypeAndOrName constructor
tromey Jun 25, 2018
ea4ac97
Add Rust support to the Python test harness
tromey Jun 25, 2018
df47965
The Rust plugin
tromey Jun 25, 2018
b8bd5dc
Compute Python library suffix in CMakeLists.txt
tromey Jul 9, 2018
02ddf76
Do not crash when enum discriminant is not recognized
tromey Aug 7, 2018
0e77fbd
Use correct include path for State.h
tromey Sep 5, 2018
0322285
Add "rust-enabled" to --version output
tromey Oct 2, 2018
d957e27
Fix handling of variant parts
tromey Oct 22, 2018
463cd70
Give names to tuple fields
tromey Oct 25, 2018
945de34
Rename tuple fields after discriminant is removed
tromey Oct 26, 2018
ff0a15a
Fix field names when emitting a C structure
tromey Nov 9, 2018
28e0138
Remove by-name cache from RustASTContext
tromey Nov 9, 2018
af32307
Disable enum type test
tromey Nov 14, 2018
2ed5e5d
Read template parameters for structure types
tromey Nov 14, 2018
8027847
Read template parameters for function types
tromey Nov 14, 2018
0fb81ce
Fix the build after the rebase
tromey Nov 27, 2018
a27fbee
Fix DWARFASTParserRust::ParseFunctionFromDWARF for r350943
cuviper Jan 15, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions lld/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,19 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
)
endif()

if (MSVC)
FOREACH(flag
CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_DEBUG_INIT
CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_DEBUG_INIT)
if (MSVC)
STRING(REPLACE "/MD" "/MT" "${flag}" "${${flag}}")
SET("${flag}" "${${flag}}")
endif (MSVC)
ENDFOREACH()
endif()

add_subdirectory(Common)
add_subdirectory(lib)
add_subdirectory(tools/lld)
Expand Down
9 changes: 8 additions & 1 deletion lldb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ if(APPLE)
add_definitions(-DLLDB_USE_OS_LOG)
endif()

if (NOT LLDB_DISABLE_PYTHON)
execute_process(
COMMAND
${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/get_libdir_suffix.py
OUTPUT_VARIABLE LLDB_PY_LIB_SUFFIX)
endif ()

add_subdirectory(docs)
if (NOT LLDB_DISABLE_PYTHON)
add_subdirectory(scripts)
Expand Down Expand Up @@ -146,7 +153,7 @@ if (NOT LLDB_DISABLE_PYTHON)
--cfgBldDir=${lldb_scripts_dir}
--prefix=${CMAKE_BINARY_DIR}
--cmakeBuildConfiguration=${CMAKE_CFG_INTDIR}
--lldbLibDir=lib${LLVM_LIBDIR_SUFFIX}
--lldbLibDir=lib${LLDB_PY_LIB_SUFFIX}
${use_python_wrapper_from_src_dir}
${use_six_py_from_system}
VERBATIM
Expand Down
2 changes: 1 addition & 1 deletion lldb/docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if(EPYDOC_EXECUTABLE)
--url "http://lldb.llvm.org"
${EPYDOC_OPTIONS}
DEPENDS swig_wrapper liblldb
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../../../lib${LLVM_LIBDIR_SUFFIX}/python2.7/site-packages
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../../../lib${LLDB_PY_LIB_SUFFIX}/python2.7/site-packages
COMMENT "Generating LLDB Python API reference with epydoc" VERBATIM
)
endif(EPYDOC_EXECUTABLE)
1 change: 1 addition & 0 deletions lldb/include/lldb/Expression/ExpressionTypeSystemHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class ExpressionTypeSystemHelper {
eKindClangHelper,
eKindSwiftHelper,
eKindGoHelper,
eKindRustHelper,
kNumKinds
};

Expand Down
2 changes: 1 addition & 1 deletion lldb/include/lldb/Expression/ExpressionVariable.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ExpressionVariable
//----------------------------------------------------------------------
// See TypeSystem.h for how to add subclasses to this.
//----------------------------------------------------------------------
enum LLVMCastKind { eKindClang, eKindSwift, eKindGo, kNumKinds };
enum LLVMCastKind { eKindClang, eKindSwift, eKindGo, eKindRust, kNumKinds };

LLVMCastKind getKind() const { return m_kind; }

Expand Down
Loading