1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

DisambiguateGlobalSymbols should not mangle intrinsics.

llvm-svn: 76377
This commit is contained in:
Chris Lattner 2009-07-19 20:19:04 +00:00
parent 5208843938
commit c9d89253a4

View File

@ -248,8 +248,8 @@ static void DisambiguateGlobalSymbols(Module *M) {
I->setName(Mang.getMangledName(I));
}
for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I) {
// Don't mangle asm names.
if (!I->hasName() || I->getName()[0] != 1)
// Don't mangle asm names or intrinsics.
if (!I->hasName() || I->getName()[0] != 1 || I->getIntrinsicID() != 0)
I->setName(Mang.getMangledName(I));
}
}