Add a NullFolder class that doesn't fold constants.
authorDuncan Sands <baldrick@free.fr>
Tue, 12 Aug 2008 20:39:27 +0000 (20:39 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 12 Aug 2008 20:39:27 +0000 (20:39 +0000)
commitfe24bd3a89c44f9a16e3cbcf60c119dac88fad40
tree1a633cb34b07465741e3ede9f5dfb8fd74efc249
parent3837218ea0ed343da0f4d9c0fa0b290e00c52619
Add a NullFolder class that doesn't fold constants.
This may be used as the second IRBuilder template
parameter, the idea being that people learning LLVM
may find it helpful (several people asked on IRC
if it was possible to turn off constant folding
because it made it hard for them to see what was
going on).  Compiles, but otherwise completely
untested.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54698 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/ConstantFolder.h
include/llvm/Support/IRBuilder.h
include/llvm/Support/NullFolder.h [new file with mode: 0644]
include/llvm/Support/TargetFolder.h