Constructor and Description |
---|
ABCLinker.ABCLinkerSettings() |
Modifier and Type | Method and Description |
---|---|
void |
setEnableInlining(boolean b)
Tell the linker whether it should enable inlining of functions.
|
void |
setKeepMetadata(Collection<String> metadata_names)
Tell the linker which metadata names it should keep.
|
void |
setOptimize(boolean b)
Tell the linker whether it should run the peephole optimizer defaults
to false
|
void |
setProblemsCollection(Collection<ICompilerProblem> problems)
Set a problems collection for errors or warnings during link.
|
void |
setRemoveDeadCode(boolean removeDeadCode)
Enable or disable the DeadCodeFilter optimization step.
|
void |
setStripDebugOpcodes(boolean b)
Tell the linker whether is should strip out debug opcodes defaults to
false
|
void |
setStripFileAttributeFromGotoDefinitionHelp(boolean stripFileAttributeFromGotoDefinitionHelp)
If "go to definition help" meta is being kept, this flag determines
if we should strip the file attribute from the metadata.
|
void |
setStripGotoDefinitionHelp(boolean stripGotoDefinitionHelp)
If the metadata to keep is null, this flag determines if
"go to definition help" metadata is removed.
|
void |
setTargetABCVersion(int major,
int minor) |
public void setOptimize(boolean b)
b
- true if the ABCs should be optimizedpublic void setEnableInlining(boolean b)
b
- true if the functions should be inlinedpublic void setStripDebugOpcodes(boolean b)
b
- true if the ABCs should have the debug opcodes stripped outpublic void setKeepMetadata(Collection<String> metadata_names)
metadata_names
- A collection of metadata names that the linker
will keep.public void setTargetABCVersion(int major, int minor)
public void setStripGotoDefinitionHelp(boolean stripGotoDefinitionHelp)
stripGotoDefinitionHelp
- true
to strip the metadata,
false
to leave it.public void setStripFileAttributeFromGotoDefinitionHelp(boolean stripFileAttributeFromGotoDefinitionHelp)
stripFileAttributeFromGotoDefinitionHelp
- true
to strip
the file attribute, false
to leave it.public void setRemoveDeadCode(boolean removeDeadCode)
removeDeadCode
- true if the DeadCodeFilter should be run.public void setProblemsCollection(Collection<ICompilerProblem> problems)
problems
- the problems collection to receive errors or warnings.Copyright © 2016 The Apache Software Foundation. All rights reserved.