If the pass changes _anything_ it must return true

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7344 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-07-26 23:05:37 +00:00
parent 6856d11231
commit 2a865b015b
2 changed files with 4 additions and 2 deletions

View File

@ -85,7 +85,8 @@ namespace {
RegMap.clear();
MBBMap.clear();
F = 0;
return false; // We never modify the LLVM itself.
// We always build a machine code representation for the function
return true;
}
virtual const char *getPassName() const {

View File

@ -85,7 +85,8 @@ namespace {
RegMap.clear();
MBBMap.clear();
F = 0;
return false; // We never modify the LLVM itself.
// We always build a machine code representation for the function
return true;
}
virtual const char *getPassName() const {