Doesn't make a difference -- you can use coded and non-coded lenses on the M-D without worry.
Page 71 of the Leica M-D instruction manual: "Generally, most Leica M lenses can be used.....They can be used regardless of the lens features, and whether it does or does not have 6-bit coding in the bayonet. In the case of lenses with coding, the camera uses the information transmitted to optimize exposure and image data. Even without this additional feature, i.e. when using Leica M lenses without identification, the camera will deliver excellent pictures in most situations."
The following lenses cannot be used: Hologon 15mm f/8, Summicron 50mm f/2 with close-up, Elmar 90mm f/4 with retractable tube (made from 1954-68), some versions of the 35mm f/1.4 Summilux (not asph, made from 1961-95, Made in Canada) because it cannot focus to infinity. Lenses with retractable tubes can be used as long as they remain extended.
I regularly use a Nikkor-S.C 5cm f/1.4 on my M-D and the results are fine.