Revert errant deletion. The target needs to be able to specify that it doesn't want...
[oota-llvm.git] / lib / ExecutionEngine / JIT / JITEmitter.cpp
index 73346fe99e53e969d655505c201a28184939154d..9f020e3ae37f6ecb68dbca9e1900af047c363d07 100644 (file)
@@ -1013,6 +1013,11 @@ void* JITEmitter::allocateSpace(intptr_t Size, unsigned Alignment) {
 }
 
 void JITEmitter::emitConstantPool(MachineConstantPool *MCP) {
+  if (TheJIT->getJITInfo().hasCustomConstantPool()) {
+    DOUT << "JIT: Target has custom constant pool handling. Omitting standard "
+            "constant pool\n";
+    return;
+  }
   const std::vector<MachineConstantPoolEntry> &Constants = MCP->getConstants();
   if (Constants.empty()) return;