As X86MCAsmInfoDarwin uses '##' as CommentString although a single '#' starts a comment a workaround for this special case is added.
Fixes divisions in constant expressions for the AArch64 assembler and other targets which use '//' as CommentString.
Isn't this not entirely true? If you have '//' as a comment character, and you are at '/', its unclear if this is a comment starter or not. I think that we should just drop this interface and take a const char * instead.