1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Debugging helpers

This commit is contained in:
Brian Fiete 2020-10-13 13:41:41 -07:00
parent f1b685b4c7
commit 0b02483971
2 changed files with 5 additions and 1 deletions

View file

@ -495,7 +495,11 @@ public:
BE_VALUE_TYPE(BeFunction, BeConstant); BE_VALUE_TYPE(BeFunction, BeConstant);
BeModule* mModule; BeModule* mModule;
#ifdef _DEBUG
StringT<256> mName;
#else
String mName; String mName;
#endif
BfIRLinkageType mLinkageType; BfIRLinkageType mLinkageType;
bool mAlwaysInline; bool mAlwaysInline;
bool mNoUnwind; bool mNoUnwind;

View file

@ -304,7 +304,7 @@ void BfCodeGenThread::RunLoop()
auto cacheDir = GetFileDir(request->mOutFileName); auto cacheDir = GetFileDir(request->mOutFileName);
auto cacheFileName = GetFileName(request->mOutFileName); auto cacheFileName = GetFileName(request->mOutFileName);
String objFileName = request->mOutFileName + BF_OBJ_EXT; StringT<256> objFileName = request->mOutFileName + BF_OBJ_EXT;
bool hasCacheMatch = false; bool hasCacheMatch = false;
BfCodeGenDirectoryData* dirCache = NULL; BfCodeGenDirectoryData* dirCache = NULL;