]> granicus.if.org Git - clang/commit
fix several problems with asm renaming, by pulling it into the mangling code:
authorChris Lattner <sabre@nondot.org>
Sat, 21 Mar 2009 08:24:40 +0000 (08:24 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 21 Mar 2009 08:24:40 +0000 (08:24 +0000)
commitca3f25c1fb9bbf0d807985baee460670b7f195b4
tree4eefdaba5322484a2fc0bd15c486ed7f0d5301b4
parent2d58406872e5af0c924623d9f7c194c4f09936d3
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67442 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/Mangle.cpp
lib/CodeGen/Mangle.h
test/CodeGen/mangle.c