Daniel Dunbar | 45d196b | 2008-11-01 01:53:16 +0000 | [diff] [blame] | 1 | //===-- CGBuilder.h - Choose IRBuilder implementation ----------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef CLANG_CODEGEN_CGBUILDER_H |
| 11 | #define CLANG_CODEGEN_CGBUILDER_H |
| 12 | |
| 13 | #include "llvm/Support/IRBuilder.h" |
| 14 | |
| 15 | namespace clang { |
| 16 | namespace CodeGen { |
John McCall | c7d209f | 2010-07-03 09:25:20 +0000 | [diff] [blame] | 17 | |
| 18 | // Don't preserve names on values in an optimized build. |
Daniel Dunbar | 29ea672 | 2008-11-12 00:01:12 +0000 | [diff] [blame] | 19 | #ifdef NDEBUG |
John McCall | df921ae | 2010-07-06 18:43:48 +0000 | [diff] [blame] | 20 | typedef llvm::IRBuilder<false> CGBuilderTy; |
Daniel Dunbar | 29ea672 | 2008-11-12 00:01:12 +0000 | [diff] [blame] | 21 | #else |
John McCall | df921ae | 2010-07-06 18:43:48 +0000 | [diff] [blame] | 22 | typedef llvm::IRBuilder<> CGBuilderTy; |
Daniel Dunbar | 29ea672 | 2008-11-12 00:01:12 +0000 | [diff] [blame] | 23 | #endif |
John McCall | c7d209f | 2010-07-03 09:25:20 +0000 | [diff] [blame] | 24 | |
Daniel Dunbar | 45d196b | 2008-11-01 01:53:16 +0000 | [diff] [blame] | 25 | } // end namespace CodeGen |
| 26 | } // end namespace clang |
| 27 | |
| 28 | #endif |