hurd-EIEIO-undef
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sun, 12 Mar 2017 08:49:18 +0000 (08:49 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 12 Mar 2017 08:49:18 +0000 (08:49 +0000)
===================================================================

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

utils/TableGen/CodeEmitterGen.cpp

index 46fcdf5e96ffdcc48a4d17a94094ac94cbd64fdf..0f3e911371bd83f916e3a2f333b750eeb296adb2 100644 (file)
@@ -230,6 +230,9 @@ void CodeEmitterGen::run(raw_ostream &o) {
   const std::vector<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"