llvm-toolchain/debian/patches/hurd-EIEIO-undef.diff
Sylvestre Ledru 857b7c545e * Upload in unstable
* try to build lldb-gdbserver under kfreebsd (kfreebsd-lldb-gdbserver.diff)
* Second try to fix build under HURD (hurd-EIEIO-undef.diff)
2014-08-08 17:26:51 +00:00

15 lines
653 B
Diff

Index: llvm-toolchain-snapshot-3.6~svn215188/utils/TableGen/CodeEmitterGen.cpp
===================================================================
--- llvm-toolchain-snapshot-3.6~svn215188.orig/utils/TableGen/CodeEmitterGen.cpp
+++ llvm-toolchain-snapshot-3.6~svn215188/utils/TableGen/CodeEmitterGen.cpp
@@ -241,6 +241,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();
if (MCEmitter)