Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/jit/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2576,6 +2576,7 @@ void Compiler::compInitOptions(CORJIT_FLAGS* jitFlags)
{
printf("****** START compiling %s (MethodHash=%08x)\n",
info.compFullName, info.compMethodHash());
printf("Generating code for %s %s\n", Target::g_tgtPlatformName, Target::g_tgtCPUName);
printf(""); // in our logic this causes a flush
}

Expand Down
1 change: 1 addition & 0 deletions src/jit/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -1823,6 +1823,7 @@ class Target
{
public:
static const char * g_tgtCPUName;
static const char * g_tgtPlatformName;

enum ArgOrder { ARG_ORDER_R2L, ARG_ORDER_L2R };
static const enum ArgOrder g_tgtArgOrder;
Expand Down
15 changes: 15 additions & 0 deletions src/jit/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

#include "opcode.h"

/*****************************************************************************/
// Define the string platform name based on compilation #ifdefs. This is the
// same code for all platforms, hence it is here instead of in the targetXXX.cpp
// files.

#ifdef PLATFORM_UNIX
// Should we distinguish Mac? Can we?
// Should we distinguish flavors of Unix? Can we?
const char * Target::g_tgtPlatformName = "Unix";
#else // !PLATFORM_UNIX
const char * Target::g_tgtPlatformName = "Windows";
#endif // !PLATFORM_UNIX

/*****************************************************************************/

#define DECLARE_DATA

extern
Expand Down