[llvm-commits] CVS: llvm/tools/bugpoint/CodeGeneratorBug.cpp
Misha Brukman
brukman at cs.uiuc.edu
Wed Jul 30 16:46:02 PDT 2003
Changes in directory llvm/tools/bugpoint:
CodeGeneratorBug.cpp updated: 1.6 -> 1.7
---
Log message:
Ignore intrinsic functions -- don't mangle their names or rewrite calls to them.
---
Diffs of the changes:
Index: llvm/tools/bugpoint/CodeGeneratorBug.cpp
diff -u llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.6 llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.7
--- llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.6 Wed Jul 30 15:15:56 2003
+++ llvm/tools/bugpoint/CodeGeneratorBug.cpp Wed Jul 30 16:45:20 2003
@@ -113,7 +113,8 @@
// Use the function we just added to get addresses of functions we need
// Iterate over the global declarations in the Safe module
for (Module::iterator F=SafeModule->begin(),E=SafeModule->end(); F!=E; ++F){
- if (F->isExternal() && !F->use_empty() && &(*F) != resolverFunc) {
+ if (F->isExternal() && !F->use_empty() && &(*F) != resolverFunc &&
+ F->getIntrinsicID() == 0 /* ignore intrinsics */) {
// If it has a non-zero use list,
// 1. Add a string constant with its name to the global file
// The correct type is `const [ NUM x sbyte ]' where NUM is length of
@@ -257,6 +258,10 @@
if (externalOnly && !V.isExternal()) return;
// If we're already processed this symbol, don't add it again
if (Symbols.count(&V) != 0) return;
+ // Ignore intrinsic functions
+ if (Function *F = dyn_cast<Function>(&V))
+ if (F->getIntrinsicID() != 0)
+ return;
std::string SymName = V.getName();
More information about the llvm-commits
mailing list