hurd-EIEIO-undef
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 18 Oct 2017 14:37:25 +0000 (15:37 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 18 Oct 2017 14:37:25 +0000 (15:37 +0100)
===================================================================

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

utils/TableGen/CodeEmitterGen.cpp

index f34c0ded0a35ef767f8dc93ad3e6f4cf5bd49716..17a38b777491456bc3963f882be0087ecb4bdf2b 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"