Skip to content

Commit c2f7980

Browse files
authored
[SYCLomatic] Remove unnecessary debug code
Signed-off-by: intwanghao <hao3.wang@intel.com>
1 parent cbcc547 commit c2f7980

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

clang/lib/DPCT/RulesLangLib/CUBAPIMigration.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,6 @@ void CubRule::processCubTypeDefOrUsing(const TypedefNameDecl *TD) {
965965
ObjTypeStr.find("class cub::BlockScan") == 0 ||
966966
ObjTypeStr.find("class cub::BlockReduce") == 0)) {
967967
DeleteFlag = false;
968-
std::cout << "2" << std::endl;
969968
break;
970969
}
971970
}
@@ -974,12 +973,10 @@ void CubRule::processCubTypeDefOrUsing(const TypedefNameDecl *TD) {
974973
auto VarType = AncestorVD->getType().getCanonicalType();
975974
std::string VarTypeStr =
976975
AncestorVD->getType().getCanonicalType().getAsString();
977-
std::cout << VarTypeStr << std::endl;
978976
if (isTypeInAnalysisScope(VarType.getTypePtr()) ||
979977
!(VarTypeStr.find("TempStorage") != std::string::npos &&
980978
VarTypeStr.find("struct cub::") == 0)) {
981979
DeleteFlag = false;
982-
std::cout << "1" << std::endl;
983980
break;
984981
}
985982
}
@@ -1701,7 +1698,6 @@ void CubRule::runRule(const ast_matchers::MatchFinder::MatchResult &Result) {
17011698
processCubTypeDefOrUsing(TD);
17021699
} else if (const TypeAliasDecl *TAD =
17031700
getNodeAsType<TypeAliasDecl>(Result, "UsingDecl")) {
1704-
// std::cout << "found" << std::endl;
17051701
processCubTypeDefOrUsing(TAD);
17061702
} else if (auto TL = getNodeAsType<TypeLoc>(Result, "cudaTypeDef")) {
17071703
processTypeLoc(TL);

0 commit comments

Comments
 (0)