fix global labels in preproc

This commit is contained in:
sceptillion
2017-11-20 14:57:07 -08:00
parent 0f42ef1174
commit 7de07844ee

View File

@@ -89,8 +89,8 @@ void PreprocAsmFile(std::string filename)
if (globalLabel.length() != 0)
{
std::printf("\t.global %s\n", globalLabel.c_str());
std::printf("%s:\n", globalLabel.c_str());
const char *s = globalLabel.c_str();
std::printf("%s: ; .global %s\n", s, s);
}
else
{