diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-10-26 00:51:57 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-10-26 00:51:57 +0000 |
commit | a568d66512759f93e0d37af7c8f905603dd27449 (patch) | |
tree | cb1cfcd1be047e181bcd69c40fac481c618630ed /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 0a12b801b546269b87c3806c6d4606cf2b287daa (diff) |
For statistics that are only used in functions declared in !NDEBUG, wrap the
declarations in !NDEBUG to avoid -Wunused-variable warnings. Patch by
Matt Beaumont-Gay!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 69cdafc1b1..221e518343 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -53,7 +53,9 @@ static cl::opt<bool> UnknownLocations("use-unknown-locations", cl::Hidden, cl::desc("Make an absense of debug location information explicit."), cl::init(false)); +#ifndef NDEBUG STATISTIC(BlocksWithoutLineNo, "Number of blocks without any line number"); +#endif namespace { const char *DWARFGroupName = "DWARF Emission"; |