forked from OSchip/llvm-project
Extend ifndef to printDebugLoc.
GCC7 did not warn about that, but Clang does. llvm-svn: 309573
This commit is contained in:
parent
94b8a87c8e
commit
1b09a37c07
|
@ -329,6 +329,7 @@ public:
|
|||
};
|
||||
} // namespace
|
||||
|
||||
#ifndef NDEBUG
|
||||
static void printDebugLoc(const DebugLoc &DL, raw_ostream &CommentOS,
|
||||
const LLVMContext &Ctx) {
|
||||
if (!DL)
|
||||
|
@ -350,7 +351,6 @@ static void printDebugLoc(const DebugLoc &DL, raw_ostream &CommentOS,
|
|||
CommentOS << " ]";
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
static void printExtendedName(raw_ostream &OS, const DILocalVariable *V,
|
||||
const DILocation *DL) {
|
||||
const LLVMContext &Ctx = V->getContext();
|
||||
|
|
Loading…
Reference in New Issue