DisambiguateGlobalSymbols should not mangle intrinsics.

llvm-svn: 76377
This commit is contained in:
Chris Lattner 2009-07-19 20:19:04 +00:00
parent 9662cd3227
commit 7e8aaad1a0
1 changed files with 2 additions and 2 deletions

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));
}
}