diff options
author | Matt Beaumont-Gay <matthewbg@google.com> | 2012-01-30 19:26:20 +0000 |
---|---|---|
committer | Matt Beaumont-Gay <matthewbg@google.com> | 2012-01-30 19:26:20 +0000 |
commit | baffe7a6f3c3f9588048db37a59b9b2f52ffe248 (patch) | |
tree | 15caf2e8bfef8542b86f6f83da9ead894d0a0926 /lib | |
parent | 8cf27efe4000c194efec4004afa83d12031c6d55 (diff) | |
download | external_llvm-baffe7a6f3c3f9588048db37a59b9b2f52ffe248.zip external_llvm-baffe7a6f3c3f9588048db37a59b9b2f52ffe248.tar.gz external_llvm-baffe7a6f3c3f9588048db37a59b9b2f52ffe248.tar.bz2 |
Here's a new one: GCC was complaining about an only-used-in-asserts
*function*. Wrap the function in #ifndef NDEBUG.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149259 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index c491d49..8be14ee 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -797,7 +797,7 @@ void LiveIntervals::addKillFlags() { } } - +#ifndef NDEBUG static bool intervalRangesSane(const LiveInterval& li) { if (li.empty()) { return true; @@ -814,6 +814,7 @@ static bool intervalRangesSane(const LiveInterval& li) { return true; } +#endif template <typename DefSetT> static void handleMoveDefs(LiveIntervals& lis, SlotIndex origIdx, @@ -1145,4 +1146,3 @@ LiveRange LiveIntervals::addLiveRangeToEndOfBlock(unsigned reg, return LR; } - |