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:
parent
5208843938
commit
c9d89253a4
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user