Debug flag for target's info was added

This commit is contained in:
Vsevolod Livinskiy
2015-05-21 11:33:05 +03:00
parent ebe165dff8
commit bd65df8ad4
4 changed files with 18 additions and 5 deletions

View File

@@ -3055,7 +3055,7 @@ Module::CompileAndOutput(const char *srcFile,
{
if (target == NULL || strchr(target, ',') == NULL) {
// We're only compiling to a single target
g->target = new Target(arch, cpu, target, generatePIC);
g->target = new Target(arch, cpu, target, generatePIC, g->printTarget);
if (!g->target->isValid())
return 1;
@@ -3198,7 +3198,7 @@ Module::CompileAndOutput(const char *srcFile,
std::string treatGenericAsSmth = "";
for (unsigned int i = 0; i < targets.size(); ++i) {
g->target = new Target(arch, cpu, targets[i].c_str(), generatePIC);
g->target = new Target(arch, cpu, targets[i].c_str(), generatePIC, g->printTarget);
if (!g->target->isValid())
return 1;
@@ -3293,7 +3293,7 @@ Module::CompileAndOutput(const char *srcFile,
}
Assert(firstTargetMachine != NULL);
g->target = new Target(arch, cpu, firstISA, generatePIC, treatGenericAsSmth);
g->target = new Target(arch, cpu, firstISA, generatePIC, false, treatGenericAsSmth);
if (!g->target->isValid()) {
return 1;
}