Extend ifndef to printDebugLoc.
GCC7 did not warn about that, but Clang does. llvm-svn: 309573
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user