Advertisement
Guest User

InstrInfoEmitter.cpp patch

a guest
Aug 17th, 2012
27
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 170,174d169
  2. < OS << "\n#ifdef GET_INSTRINFO_MC_DESC\n";
  3. < OS << "#undef GET_INSTRINFO_MC_DESC\n";
  4. <
  5. < OS << "namespace llvm {\n\n";
  6. <
  7. 177a173,179
  8. > std::string Namespace = Target.getInstNamespace();
  9. >
  10. > OS << "\n#ifdef GET_INSTRINFO_MC_DESC\n";
  11. > OS << "#undef GET_INSTRINFO_MC_DESC\n";
  12. >
  13. > OS << "namespace llvm {\n";
  14. > OS << "namespace " << Namespace << " {\n\n";
  15. 206c208
  16. < OS << "\nMCInstrDesc " << TargetName << "Insts[] = {\n";
  17. ---
  18. > OS << "\nMCInstrDesc " << "Insts[] = {\n";
  19. 213a216,217
  20. > OS << "} // End " << Namespace << " namespace \n";
  21. > OS << "} // End llvm namespace \n\n";
  22. 215a220
  23. > OS << "namespace llvm {\n";
  24. 218c223
  25. < OS << " II->InitMCInstrInfo(" << TargetName << "Insts, "
  26. ---
  27. > OS << " II->InitMCInstrInfo(" << Namespace << "::Insts, "
  28. 220d224
  29. <
  30. 242c246,248
  31. < OS << "extern MCInstrDesc " << TargetName << "Insts[];\n";
  32. ---
  33. > OS << "namespace " << Namespace << " {\n";
  34. > OS << "extern MCInstrDesc " << "Insts[];\n";
  35. > OS << "} // End " << Namespace << " namespace \n";
  36. 245c251
  37. < << " InitMCInstrInfo(" << TargetName << "Insts, "
  38. ---
  39. > << " InitMCInstrInfo(" << TargetName << "::Insts, "
Advertisement
RAW Paste Data Copied
Advertisement