projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Provide a hook to set the code generation debug options to investigate lto failures.
[oota-llvm.git]
/
tools
/
lto
/
lto.cpp
diff --git
a/tools/lto/lto.cpp
b/tools/lto/lto.cpp
index f60f7b5ac0943e84fea03743a9f0db736ce5d62b..b674f3171ef86c346284e0dc47d0c2d6ad87dfe9 100644
(file)
--- a/
tools/lto/lto.cpp
+++ b/
tools/lto/lto.cpp
@@
-237,5
+237,11
@@
lto_codegen_compile(lto_code_gen_t cg, size_t* length)
return cg->compile(length, sLastErrorString);
}
+extern void
+lto_codegen_debug_options(lto_code_gen_t cg, const char * opt)
+{
+ cg->setCodeGenDebugOptions(opt);
+}
+