Make sure NVPTX doesn't emit symbol names that aren't valid in PTX.
[oota-llvm.git] / lib / Target / Target.cpp
index ee5178184fb9ff03d2a969f2691a787da5af8a3a..627786dfb4968f10c6562ddd282be2e5fbce4a69 100644 (file)
@@ -55,6 +55,8 @@ LLVMTargetDataRef LLVMCreateTargetData(const char *StringRep) {
 }
 
 void LLVMAddTargetData(LLVMTargetDataRef TD, LLVMPassManagerRef PM) {
+  // The DataLayoutPass must now be in sync with the module. Unfortunatelly we
+  // cannot enforce that from the C api.
   unwrap(PM)->add(new DataLayoutPass(*unwrap(TD)));
 }