Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
targ_em_const.cxx File Reference
#include <elf.h>
#include <ctype.h>
#include "defs.h"
#include "targ_const.h"
#include "targ_const_private.h"
#include "erglob.h"
#include "errors.h"
#include "config_asm.h"
#include "stab.h"
#include "em_elf.h"
Include dependency graph for targ_em_const.cxx:

Go to the source code of this file.

Defines

#define USE_STANDARD_TYPES   1
#define APPEND_TO_DBUF(a, b)   a = Targ_Append_To_Dbuf(a,b)
#define MAX_LEN   8

Functions

static BOOL Has_Control_Char (char *str, INT len)
void Targ_Emit_String (FILE *fl, char *str, INT32 len, INTSC loc)
static void Emit_Repeated_Constant (FILE *fl, const char *dir, INT64 val, INTSC rc, INTSC maxc)
void Targ_Emit_Const (FILE *fl, TCON tc, BOOL add_null, INTSC rc, INTSC loc)
void Em_Targ_Emit_Const (void *scn, TCON tc, BOOL add_null, INTSC rc)

Define Documentation

#define APPEND_TO_DBUF (   a,
 
)    a = Targ_Append_To_Dbuf(a,b)

defined(QIKKI_BE)

Definition at line 68 of file targ_em_const.cxx.

Referenced by Targ_Emit_String().

#define MAX_LEN   8

Referenced by Targ_Emit_String().

#define USE_STANDARD_TYPES   1

Definition at line 56 of file targ_em_const.cxx.


Function Documentation

static void Emit_Repeated_Constant ( FILE *  fl,
const char *  dir,
INT64  val,
INTSC  rc,
INTSC  maxc 
) [static]

Definition at line 182 of file targ_em_const.cxx.

References fprintf(), and MIN.

Referenced by Targ_Emit_Const().

Here is the call graph for this function:

static BOOL Has_Control_Char ( char *  str,
INT  len 
) [static]

Definition at line 73 of file targ_em_const.cxx.

References FALSE, len, and TRUE.

Referenced by Targ_Emit_String().

void Targ_Emit_String ( FILE *  fl,
char *  str,
INT32  len,
INTSC  loc 
)

Definition at line 105 of file targ_em_const.cxx.

References APPEND_TO_DBUF, AS_BYTE, AS_STRING, ASM_CMNT, fprintf(), Has_Control_Char(), Is_True, len, and MAX_LEN.

Referenced by Targ_Emit_Const().

Here is the call graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines