projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libLTO: Allow LTOModule to own a context
[oota-llvm.git]
/
include
/
llvm
/
LTO
/
LTOCodeGenerator.h
diff --git
a/include/llvm/LTO/LTOCodeGenerator.h
b/include/llvm/LTO/LTOCodeGenerator.h
index f93f013b7c608a5a333cd51062f09a7c0919a152..0c9ce4a54f02a7dc95008cffe3068e1d32063374 100644
(file)
--- a/
include/llvm/LTO/LTOCodeGenerator.h
+++ b/
include/llvm/LTO/LTOCodeGenerator.h
@@
-119,6
+119,8
@@
struct LTOCodeGenerator {
void setDiagnosticHandler(lto_diagnostic_handler_t, void *);
+ LLVMContext &getContext() { return Context; }
+
private:
void initializeLTOPasses();