llvm/lib
James Y Knight 8f4d66dfa2 Replace incorrect "#ifdef DEBUG" with "#ifndef NDEBUG".
The former is simply wrong -- the code will either never be used or will
always be used, rather than being dependent upon whether it's built with
debug assertions enabled.

The macro DEBUG isn't ever set by the llvm build system. But, the macro
DEBUG(X) is defined (unconditionally) if you happen to include
llvm/Support/Debug.h.

The code in Value.h which was erroneously protected by the #ifdef DEBUG
didn't even compile -- you can't cast<> from an LLVMOpaqueValue
directly. Fortunately, it was never invoked, as Core.cpp included
Value.h before Debug.h.

The conditionalized code in AArch64CollectLOH.cpp was previously always
used, as it includes Debug.h.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280056 91177308-0d34-0410-b5e6-96231b3b80d8
2016-08-30 03:16:16 +00:00
..
Analysis NFC: add early exit in ModuleSummaryAnalysis 2016-08-30 00:46:26 +00:00
AsmParser [AsmParser] Placate a -Wmisleading-indentantion warning (GCC7). 2016-08-26 18:05:03 +00:00
Bitcode Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes. 2016-08-25 00:45:04 +00:00
CodeGen Fix coding style; NFC 2016-08-30 01:38:59 +00:00
DebugInfo Remove unused translation unit. 2016-08-23 20:08:02 +00:00
ExecutionEngine ExecutionEngine: fix a bug in the movt/movw relocator 2016-08-29 20:42:03 +00:00
Fuzzer [libFuzzer] use bits instead of bytes for memcmp/strcmp value profile -- the fuzzer reaches the goal much faster, at least on the simple puzzles 2016-08-30 03:05:50 +00:00
IR [Constant] remove fdiv and frem from canTrap() 2016-08-29 15:27:17 +00:00
IRReader Remove autoconf support 2016-01-26 21:29:08 +00:00
LibDriver Object: Replace NewArchiveIterator with a simpler NewArchiveMember class. NFCI. 2016-06-29 22:27:42 +00:00
LineEditor Fix Clang-tidy modernize-deprecated-headers warnings in some files; other minor fixes. 2016-03-28 17:40:08 +00:00
Linker Linker: Avoid some ridiculous indentation by using a temporary. NFC 2016-08-15 22:41:42 +00:00
LTO [LTO] Remove extraneous output 2016-08-29 15:33:01 +00:00
MC Move code only used by codegen out of MC. NFC. 2016-08-29 12:33:42 +00:00
Object Next set of additional error checks for invalid Mach-O files for bad LC_SYMTAB’s. 2016-08-26 19:34:07 +00:00
ObjectYAML [macho2yaml] Don't write empty linkedit data 2016-08-17 21:46:04 +00:00
Option Replace "fallthrough" comments with LLVM_FALLTHROUGH 2016-08-17 05:10:15 +00:00
Passes [PM] Introduce basic update capabilities to the new PM's CGSCC pass 2016-08-24 09:37:14 +00:00
ProfileData [ThinLTO] Indirect call promotion fixes for promoted local functions 2016-08-29 22:46:56 +00:00
Support Implement getRandomBytes() function 2016-08-26 08:14:54 +00:00
TableGen Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes. 2016-08-23 17:14:32 +00:00
Target Replace incorrect "#ifdef DEBUG" with "#ifndef NDEBUG". 2016-08-30 03:16:16 +00:00
Transforms [RewriteStatepointsForGC] Update comment for same PHI node check. NFC 2016-08-30 02:36:48 +00:00
CMakeLists.txt Move ObjectYAML code to a new library. 2016-03-01 19:15:06 +00:00
LLVMBuild.txt Add LLVMBuild for ObjectYAML. 2016-03-01 21:29:33 +00:00