Do not function resolve intrinsics. This prevents warnings and possible bad

things from happening due to

declare bool %llvm.isunordered(double, double)
declare bool %llvm.isunordered(float, float)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14219 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-06-18 05:50:48 +00:00
parent eaf10c8242
commit e5ad50b2e8

View File

@ -307,7 +307,8 @@ bool FunctionResolvingPass::run(Module &M) {
if (F->use_empty() && F->isExternal()) {
M.getFunctionList().erase(F);
Changed = true;
} else if (!F->hasInternalLinkage() && !F->getName().empty())
} else if (!F->hasInternalLinkage() && !F->getName().empty() &&
!F->getIntrinsicID())
Globals[F->getName()].push_back(F);
}