git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76378 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-07-19 20:19:25 +00:00
parent 4285d15703
commit e0d5c17921

View File

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