fix several problems with asm renaming, by pulling it into the mangling code:

1. it wasn't applying to definitions, only declarations, e.g. int x __asm("foo")
2. multiple definitions were conflicting, they weren't getting merged.
3. the code was duplicated in several places.

llvm-svn: 67442
4 files changed
tree: 20dc56b607b30dbfed6e67f0f91e0a221e76ebfc
  1. clang/
  2. llvm/