From 0791551c99b041c83413ff78c29cded7730cf601 Mon Sep 17 00:00:00 2001 From: Jan Voung Date: Wed, 7 Aug 2013 09:47:51 -0700 Subject: Revert localmod for bitcode linking speedup (different fix upstream). Original localmod: https://codereview.chromium.org/10808021/ which fixes some quadratic behavior. Xiaofei Wan fixed the quadratic behavior upstream differently, via a series of commits around: http://llvm.org/viewvc/llvm-project?view=revision&revision=181104 and it is actually faster: ~7 seconds to link pnacl-llc w/ just the upstream fix ~11 seconds to link with localmod (used to be ~120 seconds w/ quadratic behavior) BUG=http://code.google.com/p/nativeclient/issues/detail?id=2883 TEST= trybots: http://chromegw.corp.google.com/i/tryserver.nacl/builders/nacl-toolchain-linux-pnacl-x86_64/builds/784 R=eliben@chromium.org Review URL: https://codereview.chromium.org/22509002 --- include/llvm-c/lto.h | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'include') diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index ce3546bd49..078502b3e6 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -259,27 +259,6 @@ lto_codegen_dispose(lto_code_gen_t); extern bool lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod); -/* @LOCALMOD-BEGIN */ -/** - * Add an object module to the set of modules for which code will be generated. - * This does not merge the module immediately, unlike lto_codegen_add_module. - * It will hold onto the module until the user calls - * lto_codegen_link_gathered_modules_and_dispose(). The lto_module_t - * should now by owned by the lto_code_gen_t, and will be freed when - * the link is done. - */ -extern void -lto_codegen_gather_module_for_link(lto_code_gen_t cg, lto_module_t mod); - -/** - * Merges modules that are part of the set of modules gathered by - * lto_codegen_gather_module_for_link(), and the also destroys the modules - * as lto_module_dispose() would. - */ -extern bool -lto_codegen_link_gathered_modules_and_dispose(lto_code_gen_t cg); -/* @LOCALMOD-END*/ - /** * Sets if debug info should be generated. * Returns true on error (check lto_get_error_message() for details). -- cgit v1.2.3-18-g5258