From 67f756b5eb876150b4475afd5462a6d9e25c5c1a Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Mon, 9 Jan 2017 20:24:17 +0000 Subject: [PATCH] hurd-EIEIO-undef =================================================================== Gbp-Pq: Name hurd-EIEIO-undef.diff --- utils/TableGen/CodeEmitterGen.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp index 46fcdf5e..0f3e9113 100644 --- a/utils/TableGen/CodeEmitterGen.cpp +++ b/utils/TableGen/CodeEmitterGen.cpp @@ -230,6 +230,9 @@ void CodeEmitterGen::run(raw_ostream &o) { const std::vector &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" -- 2.30.2