diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2016-02-25 10:27:39 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2016-02-25 10:27:39 +0000 |
| commit | 395fe57374915198fce7ed25c8afbc8140e29574 (patch) | |
| tree | 41b09a7d7778cbd34b10a9d462f81686d45ea1aa /llvm/include | |
| parent | b9fd2e00154446ecb838a496cca87944fde130cc (diff) | |
| download | bcm5719-llvm-395fe57374915198fce7ed25c8afbc8140e29574.tar.gz bcm5719-llvm-395fe57374915198fce7ed25c8afbc8140e29574.zip | |
[PM] Add the IR unit type to the pass manager's logging and make all of
the testing more more explicit.
This will currently fail on platforms without support for getTypeName.
While an assert failure seems too harsh, I'm hoping we're OK with the
regression test failure, and I'd like to find out about what platforms
actually exist in this state if there are any so we can get
implementations in place for them.
But if we just can't fix all the host compilers to have a reasonably
portable variant of getTypeName and are worried about xfailing this test
on those platforms, I can add the horrible regular expression magic to
make the tests support "unknown" here as well.
llvm-svn: 261853
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/IR/PassManager.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/IR/PassManager.h b/llvm/include/llvm/IR/PassManager.h index 56ddfeb97a5..42b9c54356b 100644 --- a/llvm/include/llvm/IR/PassManager.h +++ b/llvm/include/llvm/IR/PassManager.h @@ -46,6 +46,7 @@ #include "llvm/IR/PassManagerInternal.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Debug.h" +#include "llvm/Support/TypeName.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Support/type_traits.h" #include <list> @@ -199,7 +200,7 @@ public: PreservedAnalyses PA = PreservedAnalyses::all(); if (DebugLogging) - dbgs() << "Starting pass manager run.\n"; + dbgs() << "Starting " << getTypeName<IRUnitT>() << " pass manager run.\n"; for (unsigned Idx = 0, Size = Passes.size(); Idx != Size; ++Idx) { if (DebugLogging) @@ -228,7 +229,7 @@ public: } if (DebugLogging) - dbgs() << "Finished pass manager run.\n"; + dbgs() << "Finished " << getTypeName<IRUnitT>() << " pass manager run.\n"; return PA; } |

