summaryrefslogtreecommitdiff
path: root/debian/patches/hurd-EIEIO-undef.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/hurd-EIEIO-undef.diff')
-rw-r--r--debian/patches/hurd-EIEIO-undef.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/patches/hurd-EIEIO-undef.diff b/debian/patches/hurd-EIEIO-undef.diff
new file mode 100644
index 0000000..c350bfc
--- /dev/null
+++ b/debian/patches/hurd-EIEIO-undef.diff
@@ -0,0 +1,14 @@
+Index: llvm-toolchain-snapshot_3.6~svn217023/utils/TableGen/CodeEmitterGen.cpp
+===================================================================
+--- llvm-toolchain-snapshot_3.6~svn217023.orig/utils/TableGen/CodeEmitterGen.cpp
++++ llvm-toolchain-snapshot_3.6~svn217023/utils/TableGen/CodeEmitterGen.cpp
+@@ -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"