Skip to content

Commit 4af9e66

Browse files
committed
HACK: Force debugging output on to try to identify CI bot issue.
The CI for llvm#163027 is reliably reproducing the bug from llvm#158270. This patch temporarily adds debugging output to the PR for the former to try to gain insight into the latter.
1 parent ecfd111 commit 4af9e66

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

llvm/unittests/ExecutionEngine/Orc/ReOptimizeLayerTest.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "llvm/ExecutionEngine/Orc/Shared/ExecutorAddress.h"
1717
#include "llvm/IR/IRBuilder.h"
1818
#include "llvm/Support/CodeGen.h"
19+
#include "llvm/Support/Debug.h"
1920
#include "llvm/TargetParser/Host.h"
2021
#include "llvm/Testing/Support/Error.h"
2122
#include "gtest/gtest.h"
@@ -33,7 +34,10 @@ class ReOptimizeLayerTest : public testing::Test {
3334
}
3435

3536
protected:
37+
3638
void SetUp() override {
39+
DebugFlag = true;
40+
3741
auto JTMB = JITTargetMachineBuilder::detectHost();
3842
// Bail out if we can not detect the host.
3943
if (!JTMB) {
@@ -103,6 +107,10 @@ class ReOptimizeLayerTest : public testing::Test {
103107
std::move(CompileFunction));
104108
}
105109

110+
void TearDown() override {
111+
DebugFlag = OrigDebugFlag;
112+
}
113+
106114
Error addIRModule(ResourceTrackerSP RT, ThreadSafeModule TSM) {
107115
assert(TSM && "Can not add null module");
108116

@@ -117,8 +125,11 @@ class ReOptimizeLayerTest : public testing::Test {
117125
std::unique_ptr<IRCompileLayer> CompileLayer;
118126
std::unique_ptr<ReOptimizeLayer> ROLayer;
119127
std::unique_ptr<DataLayout> DL;
128+
static const bool OrigDebugFlag;
120129
};
121130

131+
const bool ReOptimizeLayerTest::OrigDebugFlag = DebugFlag;
132+
122133
static Function *createRetFunction(Module *M, StringRef Name,
123134
uint32_t ReturnCode) {
124135
Function *Result = Function::Create(

0 commit comments

Comments
 (0)