Basic fix for http://llvm.org/bugs/show_bug.cgi?id=22761.
Looking at the ARM counterpart, it handles stuff like ":lower16:" and more interestingly "(PLT)". Even more interestingly, removing those doesn't break any tests.
I tried to get some more interesting testcases, but I settled on an assert on the target flags, as I couldn't come up with a case where any of those would be set in inline asm (the other way to get to printOperand is the DEBUG_VALUE comment printer, but that's even more constrained).
Examples and pointers welcome!
I don't have a clear picture of the place of AsmPrinter in the grand scheme of things - yet -, so I'll have a second look and update if necessary (to the ARM version as well, smells like dead code to me).
Thanks,
-Ahmed