#include <cstdlib>
#include "arch/hsail/Brig.h"
-#include "base/misc.hh"
+#include "base/logging.hh"
#include "base/trace.hh"
#include "debug/BRIG.hh"
#include "debug/HSAILObject.hh"
p->firstCodeBlockEntry, p->nextModuleEntry);
if (p->firstCodeBlockEntry != p->nextModuleEntry) {
- panic("Function calls are not fully supported yet!!: %s\n",
- getString(p->name));
+ // Function calls are not supported. We allow the BRIG
+ // object file to create stubs, but the function calls will
+ // not work properly if the application makes use of them.
+ warn("HSA function invocations are unsupported.\n");
const char *name = getString(p->name);
panic("Multiple definition of Function!!: %s\n",
getString(p->name));
}
-
}
+
nextDirPtr = getCodeSectionEntry(p->nextModuleEntry);
}
break;