Skip to content

Commit 5904206

Browse files
committed
Remove bolt unittest dep on LLVMTestingSupport to fix link
1 parent 2f1529f commit 5904206

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

bolt/unittests/Core/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ target_link_libraries(CoreTests
2020
LLVMBOLTRewrite
2121
LLVMBOLTProfile
2222
LLVMBOLTUtils
23-
LLVMTestingSupport
2423
)
2524

2625
foreach (tgt ${BOLT_TARGETS_TO_BUILD})

bolt/unittests/Core/MemoryMaps.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "llvm/DebugInfo/DWARF/DWARFContext.h"
1313
#include "llvm/Support/CommandLine.h"
1414
#include "llvm/Support/TargetSelect.h"
15-
#include "llvm/Testing/Support/Error.h"
1615
#include "gtest/gtest.h"
1716

1817
using namespace llvm;
@@ -110,7 +109,7 @@ TEST_P(MemoryMapsTester, ParseMultipleSegments) {
110109
Error Err = DA.preprocessProfile(*BC);
111110

112111
// Ignore errors from perf2bolt when parsing memory events later on.
113-
ASSERT_THAT_ERROR(std::move(Err), Succeeded());
112+
ASSERT_FALSE(!!Err) << "Expected success";
114113

115114
auto &BinaryMMapInfo = DA.getBinaryMMapInfo();
116115
auto El = BinaryMMapInfo.find(Pid);

llvm/lib/Testing/Support/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ add_llvm_library(LLVMTestingSupport
1414
ADDITIONAL_HEADER_DIRS
1515
${LLVM_MAIN_INCLUDE_DIR}/llvm/Testing/Support
1616

17-
DISABLE_LLVM_LINK_LLVM_DYLIB
18-
1917
LINK_COMPONENTS
2018
Support
2119
)

0 commit comments

Comments
 (0)