blob: ed56bd913779092a137a93696376ebbb4244c0ba [file] [log] [blame]
Daniel Dunbar45d196b2008-11-01 01:53:16 +00001//===-- 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
15namespace clang {
16namespace CodeGen {
Daniel Dunbar29ea6722008-11-12 00:01:12 +000017 // Don't preserve names on values in an optimized build.
18#ifdef NDEBUG
Chris Lattner526d9272008-11-10 06:31:46 +000019 typedef llvm::IRBuilder<false> CGBuilderTy;
Daniel Dunbar29ea6722008-11-12 00:01:12 +000020#else
21 typedef llvm::IRBuilder<> CGBuilderTy;
22#endif
Daniel Dunbar45d196b2008-11-01 01:53:16 +000023} // end namespace CodeGen
24} // end namespace clang
25
26#endif