Skip to content

Commit

Permalink
[CodeGen] Remove usage of NDEBUG in header.
Browse files Browse the repository at this point in the history
Moreover, this seems unused.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251081 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dcci committed Oct 23, 2015
1 parent 7bcc4cd commit 8a61a92
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions include/llvm/CodeGen/FunctionLoweringInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,6 @@ class FunctionLoweringInfo {
/// MBB - The current insert position inside the current block.
MachineBasicBlock::iterator InsertPt;

#ifndef NDEBUG
SmallPtrSet<const Instruction *, 8> CatchInfoLost;
SmallPtrSet<const Instruction *, 8> CatchInfoFound;
#endif

struct LiveOutInfo {
unsigned NumSignBits : 31;
bool IsValid : 1;
Expand Down
7 changes: 0 additions & 7 deletions lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,16 +341,9 @@ void FunctionLoweringInfo::set(const Function &fn, MachineFunction &mf,
/// FunctionLoweringInfo to an empty state, ready to be used for a
/// different function.
void FunctionLoweringInfo::clear() {
assert(CatchInfoFound.size() == CatchInfoLost.size() &&
"Not all catch info was assigned to a landing pad!");

MBBMap.clear();
ValueMap.clear();
StaticAllocaMap.clear();
#ifndef NDEBUG
CatchInfoLost.clear();
CatchInfoFound.clear();
#endif
LiveOutRegInfo.clear();
VisitedBBs.clear();
ArgDbgValues.clear();
Expand Down

0 comments on commit 8a61a92

Please sign in to comment.