mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Add NDEBUG markers around debug only function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205706 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c75aecc473
commit
231ed9dd9c
@ -470,6 +470,8 @@ static void setDebugLocFromInst(IRBuilder<> &B, const Value *Ptr) {
|
|||||||
else
|
else
|
||||||
B.SetCurrentDebugLocation(DebugLoc());
|
B.SetCurrentDebugLocation(DebugLoc());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
/// \return string containing a file name and a line # for the given
|
/// \return string containing a file name and a line # for the given
|
||||||
/// instruction.
|
/// instruction.
|
||||||
static format_object3<const char *, const char *, unsigned>
|
static format_object3<const char *, const char *, unsigned>
|
||||||
@ -489,6 +491,8 @@ getDebugLocString(const Instruction *I) {
|
|||||||
const char *FileName = Loc.getFilename().data();
|
const char *FileName = Loc.getFilename().data();
|
||||||
return format("%s/%s:%u", DirName, FileName, LineNo);
|
return format("%s/%s:%u", DirName, FileName, LineNo);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/// LoopVectorizationLegality checks if it is legal to vectorize a loop, and
|
/// LoopVectorizationLegality checks if it is legal to vectorize a loop, and
|
||||||
/// to what vectorization factor.
|
/// to what vectorization factor.
|
||||||
/// This class does not look at the profitability of vectorization, only the
|
/// This class does not look at the profitability of vectorization, only the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user