mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
DisambiguateGlobalSymbols should not mangle intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76377 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a786c7b90c
commit
4285d15703
@ -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