From: Davide Italiano Date: Sat, 24 Oct 2015 22:09:54 +0000 (+0000) Subject: [CodeGen] Get rid of NDEBUG to ensure structure stability. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=548219a599d722393fb9b03782466caad2591127;hp=f811b16da3a4ea5019d4dbfed7b6a161480e05af [CodeGen] Get rid of NDEBUG to ensure structure stability. I think it's fine to keep this fields around in terms of overhead, I wasn't able to measure any substantial regression while running the test suite, but, in case this causes some regression I'm ready to revert and work on an alternative solution. This was tested building with clang/gcc both in Debug and Release mode and passes the test-suite. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251209 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index 1edf71fe30e..f9a760fb2e4 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -215,9 +215,7 @@ class SelectionDAG { /// Tracks dbg_value information through SDISel. SDDbgInfo *DbgInfo; -#ifndef NDEBUG uint16_t NextPersistentId; -#endif public: /// Clients of various APIs that cause global effects on diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index 2f31f8d9b31..e0eadfaa2b3 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -426,11 +426,9 @@ private: friend struct ilist_traits; public: -#ifndef NDEBUG /// Unique and persistent id per SDNode in the DAG. /// Used for debug printing. uint16_t PersistentId; -#endif //===--------------------------------------------------------------------===// // Accessors