summaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-reduce/ReducerWorkItem.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-reduce/ReducerWorkItem.h')
-rw-r--r--llvm/tools/llvm-reduce/ReducerWorkItem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/tools/llvm-reduce/ReducerWorkItem.h b/llvm/tools/llvm-reduce/ReducerWorkItem.h
index ec19e3ab5b01..45efaefd1292 100644
--- a/llvm/tools/llvm-reduce/ReducerWorkItem.h
+++ b/llvm/tools/llvm-reduce/ReducerWorkItem.h
@@ -26,6 +26,11 @@ public:
bool isMIR() const { return MMI != nullptr; }
+ LLVMContext &getContext() {
+ return M->getContext();
+ }
+
+ Module &getModule() { return *M; }
const Module &getModule() const { return *M; }
void print(raw_ostream &ROS, void *p = nullptr) const;