hurd-EIEIO-undef
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Thu, 19 Mar 2020 08:50:20 +0000 (08:50 +0000)
committerGianfranco Costamagna <locutusofborg@debian.org>
Thu, 19 Mar 2020 08:50:20 +0000 (08:50 +0000)
===================================================================

Gbp-Pq: Topic hurd
Gbp-Pq: Name hurd-EIEIO-undef.diff

utils/TableGen/CodeEmitterGen.cpp

index 23751a2cbfba09cf0d26c24ba4ff8e34cbca91a7..0d7882ff15bf0aa2ddbfe42fc90987595dd73f88 100644 (file)
@@ -239,6 +239,9 @@ void CodeEmitterGen::run(raw_ostream &o) {
   ArrayRef<const CodeGenInstruction*> NumberedInstructions =
     Target.getInstructionsByEnumValue();
 
+  o << "// Undef for HURD\n";
+  o << "#ifdef EIEIO\n#undef EIEIO\n#endif\n";
+
   // Emit function declaration
   o << "uint64_t " << Target.getName();
   o << "MCCodeEmitter::getBinaryCodeForInstr(const MCInst &MI,\n"