mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-03 11:24:18 +00:00
Revert r199191, "LTO: add API to set strategy for -internalize"
Please update also Other/link-opts.ll, in next time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199197 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -40,7 +40,7 @@ typedef bool lto_bool_t;
|
||||
* @{
|
||||
*/
|
||||
|
||||
#define LTO_API_VERSION 6
|
||||
#define LTO_API_VERSION 5
|
||||
|
||||
typedef enum {
|
||||
LTO_SYMBOL_ALIGNMENT_MASK = 0x0000001F, /* log2 of alignment */
|
||||
@ -73,11 +73,6 @@ typedef enum {
|
||||
LTO_CODEGEN_PIC_MODEL_DYNAMIC_NO_PIC = 2
|
||||
} lto_codegen_model;
|
||||
|
||||
typedef enum {
|
||||
LTO_INTERNALIZE_FULL = 0,
|
||||
LTO_INTERNALIZE_NONE = 1,
|
||||
LTO_INTERNALIZE_HIDDEN = 2
|
||||
} lto_internalize_strategy;
|
||||
|
||||
/** opaque reference to a loaded object module */
|
||||
typedef struct LTOModule* lto_module_t;
|
||||
@ -268,14 +263,6 @@ extern void
|
||||
lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args,
|
||||
int nargs);
|
||||
|
||||
/**
|
||||
* Sets the strategy to use during internalize. Default strategy is
|
||||
* LTO_INTERNALIZE_FULL.
|
||||
*/
|
||||
extern void
|
||||
lto_codegen_set_internalize_strategy(lto_code_gen_t cg,
|
||||
lto_internalize_strategy);
|
||||
|
||||
/**
|
||||
* Tells LTO optimization passes that this symbol must be preserved
|
||||
* because it is referenced by native code or a command line option.
|
||||
|
Reference in New Issue
Block a user