Skip to content

Commit fb0030c

Browse files
authored
Merge pull request #64 from schweitzpgi/release_70
Release 70 merge latest
2 parents 75f12d2 + 5d601aa commit fb0030c

File tree

9 files changed

+9
-38
lines changed

9 files changed

+9
-38
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ if(NOT DEFINED LLVM_VERSION_MAJOR)
2626
set(LLVM_VERSION_MAJOR 7)
2727
endif()
2828
if(NOT DEFINED LLVM_VERSION_MINOR)
29-
set(LLVM_VERSION_MINOR 0)
29+
set(LLVM_VERSION_MINOR 1)
3030
endif()
3131
if(NOT DEFINED LLVM_VERSION_PATCH)
32-
set(LLVM_VERSION_PATCH 1)
32+
set(LLVM_VERSION_PATCH 0)
3333
endif()
3434
if(NOT DEFINED LLVM_VERSION_SUFFIX)
3535
set(LLVM_VERSION_SUFFIX "")

cmake/modules/AddLLVM.cmake

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function(add_llvm_symbol_exports target_name export_file)
8383
# FIXME: Don't write the "local:" line on OpenBSD.
8484
# in the export file, also add a linker script to version LLVM symbols (form: LLVM_N.M)
8585
add_custom_command(OUTPUT ${native_export_file}
86-
COMMAND echo "LLVM_${LLVM_VERSION_MAJOR} {" > ${native_export_file}
86+
COMMAND echo "LLVM_${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR} {" > ${native_export_file}
8787
COMMAND grep -q "[[:alnum:]]" ${export_file} && echo " global:" >> ${native_export_file} || :
8888
COMMAND sed -e "s/$/;/" -e "s/^/ /" < ${export_file} >> ${native_export_file}
8989
COMMAND echo " local: *;" >> ${native_export_file}
@@ -500,7 +500,7 @@ function(llvm_add_library name)
500500
PROPERTIES
501501
# Since 4.0.0, the ABI version is indicated by the major version
502502
SOVERSION ${LLVM_VERSION_MAJOR}
503-
VERSION ${LLVM_VERSION_MAJOR}${LLVM_VERSION_SUFFIX})
503+
VERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX})
504504
endif()
505505
endif()
506506

@@ -522,7 +522,7 @@ function(llvm_add_library name)
522522
if(${output_name} STREQUAL "output_name-NOTFOUND")
523523
set(output_name ${name})
524524
endif()
525-
set(library_name ${output_name}-${LLVM_VERSION_MAJOR}${LLVM_VERSION_SUFFIX})
525+
set(library_name ${output_name}-${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}${LLVM_VERSION_SUFFIX})
526526
set(api_name ${output_name}-${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX})
527527
set_target_properties(${name} PROPERTIES OUTPUT_NAME ${library_name})
528528
llvm_install_library_symlink(${api_name} ${library_name} SHARED

docs/ReleaseNotes.rst

-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ Non-comprehensive list of changes in this release
3030
is available on the Visual Studio Marketplace. The new integration
3131
supports Visual Studio 2017.
3232

33-
* Libraries have been renamed from 7.0 to 7. This change also impacts
34-
downstream libraries like lldb.
35-
3633
* The LoopInstSimplify pass (``-loop-instsimplify``) has been removed.
3734

3835
* Symbols starting with ``?`` are no longer mangled by LLVM when using the

include/llvm/ADT/Optional.h

-18
Original file line numberDiff line numberDiff line change
@@ -108,24 +108,6 @@ template <typename T, bool IsPodLike> struct OptionalStorage {
108108
}
109109
};
110110

111-
#if !defined(__GNUC__) || defined(__clang__) // GCC up to GCC7 miscompiles this.
112-
/// Storage for trivially copyable types only.
113-
template <typename T> struct OptionalStorage<T, true> {
114-
AlignedCharArrayUnion<T> storage;
115-
bool hasVal = false;
116-
117-
OptionalStorage() = default;
118-
119-
OptionalStorage(const T &y) : hasVal(true) { new (storage.buffer) T(y); }
120-
OptionalStorage &operator=(const T &y) {
121-
*reinterpret_cast<T *>(storage.buffer) = y;
122-
hasVal = true;
123-
return *this;
124-
}
125-
126-
void reset() { hasVal = false; }
127-
};
128-
#endif
129111
} // namespace optional_detail
130112

131113
template <typename T> class Optional {

lib/AsmParser/LLParser.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4726,7 +4726,7 @@ bool LLParser::ParseDITemplateValueParameter(MDNode *&Result, bool IsDistinct) {
47264726
/// isDefinition: true, declaration: !3, align: 8)
47274727
bool LLParser::ParseDIGlobalVariable(MDNode *&Result, bool IsDistinct) {
47284728
#define VISIT_MD_FIELDS(OPTIONAL, REQUIRED) \
4729-
REQUIRED(name, MDStringField, (/* AllowEmpty */ false)); \
4729+
REQUIRED(name, MDStringField, (/* AllowEmpty */ true)); \
47304730
OPTIONAL(scope, MDField, ); \
47314731
OPTIONAL(linkageName, MDStringField, ); \
47324732
OPTIONAL(file, MDField, ); \

lib/IR/Verifier.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ void Verifier::visitDIGlobalVariable(const DIGlobalVariable &N) {
12441244
visitDIVariable(N);
12451245

12461246
AssertDI(N.getTag() == dwarf::DW_TAG_variable, "invalid tag", &N);
1247-
AssertDI(!N.getName().empty(), "missing global variable name", &N);
1247+
//AssertDI(!N.getName().empty(), "missing global variable name", &N);
12481248
AssertDI(isType(N.getRawType()), "invalid type ref", &N, N.getRawType());
12491249
AssertDI(N.getType(), "missing global variable type", &N);
12501250
if (auto *Member = N.getRawStaticDataMemberDeclaration()) {

tools/llvm-config/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ set(LLVM_CFLAGS "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${uppercase_CMAKE_BUILD_TYPE}}
3737
set(LLVM_CXXFLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${uppercase_CMAKE_BUILD_TYPE}} ${COMPILE_FLAGS} ${LLVM_DEFINITIONS}")
3838
set(LLVM_BUILD_SYSTEM cmake)
3939
set(LLVM_HAS_RTTI ${LLVM_CONFIG_HAS_RTTI})
40-
set(LLVM_DYLIB_VERSION "${LLVM_VERSION_MAJOR}${LLVM_VERSION_SUFFIX}")
40+
set(LLVM_DYLIB_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}${LLVM_VERSION_SUFFIX}")
4141
set(LLVM_HAS_GLOBAL_ISEL "ON")
4242

4343
# Use the C++ link flags, since they should be a superset of C link flags.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
LLVM_@LLVM_VERSION_MAJOR@ { global: *; };
1+
LLVM_@LLVM_VERSION_MAJOR@.@LLVM_VERSION_MINOR@ { global: *; };

unittests/ADT/OptionalTest.cpp

-8
Original file line numberDiff line numberDiff line change
@@ -518,13 +518,5 @@ TEST_F(OptionalTest, OperatorGreaterEqual) {
518518
CheckRelation<GreaterEqual>(InequalityLhs, InequalityRhs, !IsLess);
519519
}
520520

521-
#if __has_feature(is_trivially_copyable) && defined(_LIBCPP_VERSION)
522-
static_assert(std::is_trivially_copyable<Optional<int>>::value,
523-
"Should be trivially copyable");
524-
static_assert(
525-
!std::is_trivially_copyable<Optional<NonDefaultConstructible>>::value,
526-
"Shouldn't be trivially copyable");
527-
#endif
528-
529521
} // end anonymous namespace
530522

0 commit comments

Comments
 (0)