aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-04-12 17:56:16 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-04-12 17:56:16 +0000
commit403d43a1a9e94e732b29996ae6525694bd7b6eec (patch)
treef4a98035df43dd376820b55ecc6efd255614472d /lib/VMCore
parent35dd5b0f58cba3f202a54cdfd393df3a3debdbf8 (diff)
downloadexternal_llvm-403d43a1a9e94e732b29996ae6525694bd7b6eec.zip
external_llvm-403d43a1a9e94e732b29996ae6525694bd7b6eec.tar.gz
external_llvm-403d43a1a9e94e732b29996ae6525694bd7b6eec.tar.bz2
Don't emit useless warning messages.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/AutoUpgrade.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/VMCore/AutoUpgrade.cpp b/lib/VMCore/AutoUpgrade.cpp
index b7b4811..1529d1b 100644
--- a/lib/VMCore/AutoUpgrade.cpp
+++ b/lib/VMCore/AutoUpgrade.cpp
@@ -192,8 +192,9 @@ static unsigned *getArgumentPermutation(Function* Fn, Function* NewFn) {
Function *llvm::UpgradeIntrinsicFunction(Function* F) {
// See if its one of the name's we're interested in.
if (Function *R = getUpgradedIntrinsic(F)) {
- std::cerr << "WARNING: change " << F->getName() << " to "
- << R->getName() << "\n";
+ if (R->getName() != F->getName())
+ std::cerr << "WARNING: change " << F->getName() << " to "
+ << R->getName() << "\n";
return R;
}
return 0;