@@ -952,32 +952,6 @@ ResourceCounterDirection DXILResourceCounterDirectionMap::operator[](
952952 return Lower->second ;
953953}
954954
955- void DXILResourceCounterDirectionMap::print (raw_ostream &OS) const {
956- OS << " Counter Directions:\n " ;
957- for (const auto &Dir : CounterDirections) {
958- const dxil::ResourceBindingInfo::ResourceBinding &RB =
959- Dir.first ->getBinding ();
960-
961- OS << " Binding(" << RB.RecordID << " , " << RB.Size << " , "
962- << RB.LowerBound << " , " << RB.Size << " , " << " )'s counter is " ;
963-
964- switch (Dir.second ) {
965- case ResourceCounterDirection::Increment:
966- OS << " incremented\n " ;
967- break ;
968- case ResourceCounterDirection::Decrement:
969- OS << " decremented\n " ;
970- break ;
971- case ResourceCounterDirection::Unknown:
972- OS << " unknown\n " ;
973- break ;
974- case ResourceCounterDirection::Invalid:
975- OS << " invalid\n " ;
976- break ;
977- }
978- }
979- }
980-
981955void DXILResourceCounterDirectionWrapperPass::getAnalysisUsage (
982956 AnalysisUsage &AU) const {
983957 AU.addRequiredTransitive <DXILResourceBindingWrapperPass>();
@@ -995,23 +969,6 @@ bool DXILResourceCounterDirectionWrapperPass::runOnModule(Module &M) {
995969
996970void DXILResourceCounterDirectionWrapperPass::releaseMemory () { Map.reset (); }
997971
998- void DXILResourceCounterDirectionWrapperPass::print (raw_ostream &OS,
999- const Module *M) const {
1000- if (!Map) {
1001- OS << " No resource directions have been built!\n " ;
1002- return ;
1003- }
1004-
1005- Map->print (OS);
1006- }
1007-
1008- #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
1009- LLVM_DUMP_METHOD
1010- void DXILResourceCounterDirectionWrapperPass::dump () const {
1011- print (dbgs (), nullptr );
1012- }
1013- #endif
1014-
1015972// ===----------------------------------------------------------------------===//
1016973
1017974AnalysisKey DXILResourceTypeAnalysis::Key;
0 commit comments