llvm-toolchain/debian/patches/hurd/hurd-EIEIO-undef.diff
2019-10-19 11:35:40 +02:00

15 lines
662 B
Diff

Index: llvm-toolchain-9_9.0.0/llvm/utils/TableGen/CodeEmitterGen.cpp
===================================================================
--- llvm-toolchain-9_9.0.0.orig/llvm/utils/TableGen/CodeEmitterGen.cpp
+++ llvm-toolchain-9_9.0.0/llvm/utils/TableGen/CodeEmitterGen.cpp
@@ -247,6 +247,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"