llvm-toolchain/debian/patches/hurd/hurd-EIEIO-undef.diff
2019-10-20 13:52:30 +02:00

15 lines
703 B
Diff

Index: llvm-toolchain-snapshot_10~svn372737/llvm/utils/TableGen/CodeEmitterGen.cpp
===================================================================
--- llvm-toolchain-snapshot_10~svn372737.orig/llvm/utils/TableGen/CodeEmitterGen.cpp
+++ llvm-toolchain-snapshot_10~svn372737/llvm/utils/TableGen/CodeEmitterGen.cpp
@@ -395,6 +395,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";
+
const CodeGenHwModes &HWM = Target.getHwModes();
// The set of HwModes used by instruction encodings.
std::set<unsigned> HwModes;