Skip to content

Commit bab774e

Browse files
committed
Remove bolt modifications
1 parent 09f7c3f commit bab774e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bolt/unittests/Core/MemoryMaps.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
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"
1516
#include "gtest/gtest.h"
1617

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

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

114115
auto &BinaryMMapInfo = DA.getBinaryMMapInfo();
115116
auto El = BinaryMMapInfo.find(Pid);

bolt/unittests/Profile/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ target_link_libraries(ProfileTests
1515
PRIVATE
1616
LLVMBOLTCore
1717
LLVMBOLTProfile
18+
LLVMTargetParser
1819
)
1920

2021
foreach (tgt ${BOLT_TARGETS_TO_BUILD})

0 commit comments

Comments
 (0)