aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/LeaksContext.h
AgeCommit message (Collapse)AuthorFilesLines
2014-12-11IR: Store MDNodes in a separate LeakDetector containerDuncan P. N. Exon Smith1-0/+5
This gives us better leak detection messages, like `Value` has. This also has the side effect of papering over a problem where `MachineInstr`s are added as garbage to the leak detector and then deleted without being removed. If `MDNode::getTemporary()` allocates an `MDNodeFwdDecl` in the same spot, the leak detector asserts. By separating `MDNode`s into their own container we lose that assertion. Since `MachineInstr` is required to have a trivial destructor, its usage of `LeakDetector` at all is pretty suspect. I'll be sending a patch soon to strip that out. llvm-svn: 224060
2014-08-13Canonicalize header guards into a common format.Benjamin Kramer1-3/+3
Add header guards to files that were missing guards. Remove #endif comments as they don't seem common in LLVM (we can easily add them back if we decide they're useful) Changes made by clang-tidy with minor tweaks. llvm-svn: 215558
2014-04-28[C++] Use 'nullptr'.Craig Topper1-5/+5
llvm-svn: 207394
2014-04-26Add missing include guards and missing #include, found by modules build.Richard Smith1-0/+6
llvm-svn: 207298
2013-09-11Revert "Give internal classes hidden visibility."Benjamin Kramer1-1/+1
It works with clang, but GCC has different rules so we can't make all of those hidden. This reverts commit r190534. llvm-svn: 190536
2013-09-11Give internal classes hidden visibility.Benjamin Kramer1-1/+1
Worth 100k on a linux/x86_64 Release+Asserts clang. llvm-svn: 190534
2013-01-02Move all of the header files which are involved in modelling the LLVM IRChandler Carruth1-1/+1
into their new header subdirectory: include/llvm/IR. This matches the directory structure of lib, and begins to correct a long standing point of file layout clutter in LLVM. There are still more header files to move here, but I wanted to handle them in separate commits to make tracking what files make sense at each layer easier. The only really questionable files here are the target intrinsic tablegen files. But that's a battle I'd rather not fight today. I've updated both CMake and Makefile build systems (I think, and my tests think, but I may have missed something). I've also re-sorted the includes throughout the project. I'll be committing updates to Clang, DragonEgg, and Polly momentarily. llvm-svn: 171366
2013-01-02Rename VMCore directory to IR.Chandler Carruth1-0/+92
Aside from moving the actual files, this patch only updates the build system and the source file comments under lib/... that are relevant. I'll be updating other docs and other files in smaller subsequnet commits. While I've tried to test this, but it is entirely possible that there will still be some build system fallout. Also, note that I've not changed the library name itself: libLLVMCore.a is still the library name. I'd be interested in others' opinions about whether we should rename this as well (I think we should, just not sure what it might break) llvm-svn: 171359