go/names.cc
std::string
Gogo::global_var_asm_name(const std::string& go_name, const Package* package)
{
  std::string ret;
  if (package == NULL)
    ret = this->pkgpath_symbol();
  else
    ret = package->pkgpath_symbol();
  ret.append(1, '.');
  ret.append(Gogo::unpack_hidden_name(go_name));
  return go_encode_id(ret);
}
// Return the assembler name to use for a global variable.  GO_NAME is
// the name that appears in the Go code.  PACKAGE is the package where
// the variable is defined, and is NULL for the package being
// compiled.
Return the assembler name to use for a global variable.  GO_NAME is
the name that appears in the Go code.  PACKAGE is the package where
the variable is defined, and is NULL for the package being
compiled.
Return the assembler name to use for a global variable . GO_NAME is the name that appears in the Go code . PACKAGE is the package where the variable is defined and is NULL for the package being compiled .
std::string
Gogo::global_var_asm_name(const std::string& go_name, const Package* package)
{
  std::string ret;
  if (package == NULL)
    ret = this->pkgpath_symbol();
  else
    ret = package->pkgpath_symbol();
  ret.append(1, '.');
  ret.append(Gogo::unpack_hidden_name(go_name));
  return go_encode_id(ret);
}
std :: string Gogo :: global_var_asm_name ( const std :: string & go_name , const Package * package ) { std :: string ret ; if ( package == NULL ) ret = this -> pkgpath_symbol ( ) ; else ret = package -> pkgpath_symbol ( ) ; ret . append ( 1 , ' ' ) ; ret . append ( Gogo :: unpack_hidden_name ( go_name ) ) ; return go_encode_id ( ret ) ; }
Return the assembler name to use for a global variable.
Return the assembler name to use for a global variable .