Esempio n. 1
0
// Convert the subtarget features into a string to pass to LTOCodeGenerator.
static void lto_add_attrs(lto_code_gen_t cg) {
  if (MAttrs.size()) {
    std::string attrs;
    for (unsigned i = 0; i < MAttrs.size(); ++i) {
      if (i > 0)
        attrs.append(",");
      attrs.append(MAttrs[i]);
    }

    cg->setAttr(attrs.c_str());
  }
}
Esempio n. 2
0
/// lto_codegen_set_attr - Sets the attr to generate code for.
void lto_codegen_set_attr(lto_code_gen_t cg, const char *attr) {
  return cg->setAttr(attr);
}