Author: Timm Bäder Date: 2023-02-03T16:24:04+01:00 New Revision: 50591936a1befc44f2853f1a6493ee1ef2afaa6e
URL: https://github.com/llvm/llvm-project/commit/50591936a1befc44f2853f1a6493ee1ef2afaa6e DIFF: https://github.com/llvm/llvm-project/commit/50591936a1befc44f2853f1a6493ee1ef2afaa6e.diff LOG: Revert "[clang][Interp] Only generate disassembly in debug builds" This reverts commit 60dcc70e48fa9814a4e0d5e12856bc88b7f927eb. This breaks builders, e.g. https://lab.llvm.org/buildbot/#/builders/36/builds/30036 Added: Modified: clang/lib/AST/Interp/Disasm.cpp clang/utils/TableGen/ClangOpcodesEmitter.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/Interp/Disasm.cpp b/clang/lib/AST/Interp/Disasm.cpp index aa07c0d7b8159..1c95782536fba 100644 --- a/clang/lib/AST/Interp/Disasm.cpp +++ b/clang/lib/AST/Interp/Disasm.cpp @@ -34,7 +34,6 @@ template <typename T> inline T ReadArg(Program &P, CodePtr &OpPC) { LLVM_DUMP_METHOD void Function::dump() const { dump(llvm::errs()); } LLVM_DUMP_METHOD void Function::dump(llvm::raw_ostream &OS) const { -#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) if (F) { if (const auto *MD = dyn_cast<CXXMethodDecl>(F)) OS << MD->getParent()->getDeclName() << "::"; @@ -65,7 +64,6 @@ LLVM_DUMP_METHOD void Function::dump(llvm::raw_ostream &OS) const { #undef GET_DISASM } } -#endif } LLVM_DUMP_METHOD void Program::dump() const { dump(llvm::errs()); } diff --git a/clang/utils/TableGen/ClangOpcodesEmitter.cpp b/clang/utils/TableGen/ClangOpcodesEmitter.cpp index c4992ef7d25b7..aa012233c46ee 100644 --- a/clang/utils/TableGen/ClangOpcodesEmitter.cpp +++ b/clang/utils/TableGen/ClangOpcodesEmitter.cpp @@ -161,7 +161,6 @@ void ClangOpcodesEmitter::EmitInterp(raw_ostream &OS, StringRef N, Record *R) { } void ClangOpcodesEmitter::EmitDisasm(raw_ostream &OS, StringRef N, Record *R) { -#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) OS << "#ifdef GET_DISASM\n"; Enumerate(R, N, [R, &OS](ArrayRef<Record *>, const Twine &ID) { OS << "case OP_" << ID << ":\n"; @@ -177,7 +176,6 @@ void ClangOpcodesEmitter::EmitDisasm(raw_ostream &OS, StringRef N, Record *R) { OS << " continue;\n"; }); OS << "#endif\n"; -#endif } void ClangOpcodesEmitter::EmitEmitter(raw_ostream &OS, StringRef N, Record *R) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits