Add NDEBUG markers around debug only function.

llvm-svn: 205706
This commit is contained in:
Eric Christopher 2014-04-07 12:46:30 +00:00
parent 6ab6a0648b
commit fcd222aa47
1 changed files with 4 additions and 0 deletions

View File

@ -470,6 +470,8 @@ static void setDebugLocFromInst(IRBuilder<> &B, const Value *Ptr) {
else
B.SetCurrentDebugLocation(DebugLoc());
}
#ifndef NDEBUG
/// \return string containing a file name and a line # for the given
/// instruction.
static format_object3<const char *, const char *, unsigned>
@ -489,6 +491,8 @@ getDebugLocString(const Instruction *I) {
const char *FileName = Loc.getFilename().data();
return format("%s/%s:%u", DirName, FileName, LineNo);
}
#endif
/// LoopVectorizationLegality checks if it is legal to vectorize a loop, and
/// to what vectorization factor.
/// This class does not look at the profitability of vectorization, only the