summaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/CGBuilder.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-10 06:31:46 +0000
committerChris Lattner <sabre@nondot.org>2008-11-10 06:31:46 +0000
commit526d9271ad059071d24d59efeae17ecb03e91418 (patch)
treefddb81ea93883da57ffe62fbd71b507e68f95409 /lib/CodeGen/CGBuilder.h
parent7c65ad97f7f3889e61229d76526c1a4c184f33c0 (diff)
don't preserve names on IR instructions. This matches llvm-gcc's behavior and
speeds up the compiler by ~8% at -emit-llvm -O0. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBuilder.h')
-rw-r--r--lib/CodeGen/CGBuilder.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGBuilder.h b/lib/CodeGen/CGBuilder.h
index 7d6e868159..3f59295487 100644
--- a/lib/CodeGen/CGBuilder.h
+++ b/lib/CodeGen/CGBuilder.h
@@ -14,7 +14,8 @@
namespace clang {
namespace CodeGen {
- typedef llvm::IRBuilder<> CGBuilderTy;
+ // Don't preserve names on values by default.
+ typedef llvm::IRBuilder<false> CGBuilderTy;
} // end namespace CodeGen
} // end namespace clang