public class ValueAndCode
extends java.lang.Object
ValueAndCode object packages together the two results of translating an expression into LLVM.
The value component is either a constant or an LLVM name.
The code component is the LLVM code that needs to be executed in order to evaluate the expression. If the
value component is a constant, then the code component will presumably be an empty string. But if the value
component is a name, then the code component provides the definition of that name.| Constructor and Description |
|---|
ValueAndCode(java.lang.String value,
java.lang.String code)
Construct a
ValueAndCode object. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCode()
Retrieves the LLVM code that will, at runtime, cause the name to hold the value.
|
java.lang.String |
getValue()
Retrieves the constant or the name that will, at run time, hold the value.
|
public ValueAndCode(java.lang.String value,
java.lang.String code)
ValueAndCode object.value - the constant or LLVM namecode - the LLVM code (possibly empty)public java.lang.String getValue()
public java.lang.String getCode()