summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2015-10-24 22:09:54 +0000
committerDavide Italiano <davide@freebsd.org>2015-10-24 22:09:54 +0000
commitdf1ec5561a4a28a98ae3435878967875d19dd85e (patch)
tree333e17693612c06102d713d2a54f833cf6019301 /llvm/include
parentbaffa091dd9fb62dc6b5474b965e62fd852409bf (diff)
downloadbcm5719-llvm-df1ec5561a4a28a98ae3435878967875d19dd85e.tar.gz
bcm5719-llvm-df1ec5561a4a28a98ae3435878967875d19dd85e.zip
[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. llvm-svn: 251209
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/CodeGen/SelectionDAG.h2
-rw-r--r--llvm/include/llvm/CodeGen/SelectionDAGNodes.h2
2 files changed, 0 insertions, 4 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h
index 1edf71fe30e..f9a760fb2e4 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAG.h
+++ b/llvm/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/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
index 2f31f8d9b31..e0eadfaa2b3 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -426,11 +426,9 @@ private:
friend struct ilist_traits<SDNode>;
public:
-#ifndef NDEBUG
/// Unique and persistent id per SDNode in the DAG.
/// Used for debug printing.
uint16_t PersistentId;
-#endif
//===--------------------------------------------------------------------===//
// Accessors
OpenPOWER on IntegriCloud