libLTO: Allow LTOModule to own a context
[oota-llvm.git] / include / llvm / LTO / LTOCodeGenerator.h
index f93f013b7c608a5a333cd51062f09a7c0919a152..0c9ce4a54f02a7dc95008cffe3068e1d32063374 100644 (file)
@@ -119,6 +119,8 @@ struct LTOCodeGenerator {
 
   void setDiagnosticHandler(lto_diagnostic_handler_t, void *);
 
+  LLVMContext &getContext() { return Context; }
+
 private:
   void initializeLTOPasses();