aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2013-08-26 15:29:47 -0700
committerDerek Schuff <dschuff@chromium.org>2013-08-26 15:29:47 -0700
commitb1138c189de88ac0dae968661a4977e3ad257c79 (patch)
treec69512843f92a39875989688e1fc3230497b8f9a /include
parent685d11b718cf8a017665f241f45fc144e8d622f2 (diff)
Revert LOCALMODs in gold plugin and libLTO related to bitcode shared objects and symbol wrapping
This reverts the local modifications to the gold plugin and liblto for bitcode shared objects and for symbol wrapping, neither of which are used or tested anymore. It depends on a corresponding change to the linker plugin API. R=eliben@chromium.org, jvoung@chromium.org BUG= https://code.google.com/p/nativeclient/issues/detail?id=3520 Review URL: https://codereview.chromium.org/22831032
Diffstat (limited to 'include')
-rw-r--r--include/llvm-c/lto.h100
1 files changed, 2 insertions, 98 deletions
diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h
index 078502b3e6..40110fddfc 100644
--- a/include/llvm-c/lto.h
+++ b/include/llvm-c/lto.h
@@ -60,13 +60,6 @@ typedef enum {
LTO_CODEGEN_PIC_MODEL_DYNAMIC_NO_PIC = 2
} lto_codegen_model;
-/* @LOCALMOD-BEGIN */
-typedef enum {
- LTO_OUTPUT_FORMAT_OBJECT = 0, /* object file */
- LTO_OUTPUT_FORMAT_SHARED = 1, /* shared library */
- LTO_OUTPUT_FORMAT_EXEC = 2 /* executable */
-} lto_output_format;
-/* @LOCALMOD-END */
/** opaque reference to a loaded object module */
typedef struct LTOModule* lto_module_t;
@@ -78,17 +71,6 @@ typedef struct LTOCodeGenerator* lto_code_gen_t;
extern "C" {
#endif
-
-/* @LOCALMOD-BEGIN */
-
-/* Add a command-line option */
-void lto_add_command_line_option(const char* opt);
-
-/* Parse command line options */
-void lto_parse_command_line_options();
-
-/* @LOCALMOD-END */
-
/**
* Returns a printable string.
*/
@@ -183,36 +165,6 @@ lto_module_get_target_triple(lto_module_t mod);
extern void
lto_module_set_target_triple(lto_module_t mod, const char *triple);
-/* @LOCALMOD-BEGIN */
-
-/**
- * Get the module format for this module
- */
-extern lto_output_format
-lto_module_get_output_format(lto_module_t mod);
-
-/**
- * Get the module soname
- */
-extern const char*
-lto_module_get_soname(lto_module_t mod);
-
-
-/**
- * Get the i'th library dependency.
- * Returns NULL if i >= lto_module_get_num_library_deps()
- */
-extern const char*
-lto_module_get_library_dep(lto_module_t mod, unsigned int i);
-
-
-/**
- * Return the number of library dependencies of this module.
- */
-extern unsigned int
-lto_module_get_num_library_deps(lto_module_t mod);
-
-/* @LOCALMOD-END */
/**
* Returns the number of symbols in the object module.
@@ -259,6 +211,8 @@ lto_codegen_dispose(lto_code_gen_t);
extern bool
lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod);
+
+
/**
* Sets if debug info should be generated.
* Returns true on error (check lto_get_error_message() for details).
@@ -304,56 +258,6 @@ lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args,
extern void
lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg, const char* symbol);
-/* @LOCALMOD-BEGIN */
-
-/**
- * Sets the module type for the merged module
- */
-extern void
-lto_codegen_set_merged_module_output_format(lto_code_gen_t cg,
- lto_output_format format);
-
-/**
- * Sets the SOName for the merged module
- */
-extern void
-lto_codegen_set_merged_module_soname(lto_code_gen_t cg,
- const char *soname);
-
-/**
- * Add a library dependency to the merged module
- */
-extern void
-lto_codegen_add_merged_module_library_dep(lto_code_gen_t cg,
- const char *lib);
-
-/**
- * Wrap a symbol in the merged module.
- */
-extern void
-lto_codegen_wrap_symbol_in_merged_module(lto_code_gen_t cg,
- const char *sym);
-
-
-/**
- * Set version of a defined symbol in the merged module
- */
-extern const char *
-lto_codegen_set_symbol_def_version(lto_code_gen_t cg,
- const char *sym,
- const char *version,
- bool is_default);
-
-
-/**
- * Set version of an undefined symbol in the merged module
- */
-extern const char *
-lto_codegen_set_symbol_needed(lto_code_gen_t cg,
- const char *sym,
- const char *version,
- const char *dynfile);
-/* @LOCALMOD-END */
/**
* Writes a new object file at the specified path that contains the
* merged contents of all modules added so far.