blob: 8120217ac873bb0103e265191adb63e685138945 [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 {
John McCallc7d209f2010-07-03 09:25:20 +000017
18// Don't preserve names on values in an optimized build.
Daniel Dunbar29ea6722008-11-12 00:01:12 +000019#ifdef NDEBUG
John McCalldf921ae2010-07-06 18:43:48 +000020typedef llvm::IRBuilder<false> CGBuilderTy;
Daniel Dunbar29ea6722008-11-12 00:01:12 +000021#else
John McCalldf921ae2010-07-06 18:43:48 +000022typedef llvm::IRBuilder<> CGBuilderTy;
Daniel Dunbar29ea6722008-11-12 00:01:12 +000023#endif
John McCallc7d209f2010-07-03 09:25:20 +000024
Daniel Dunbar45d196b2008-11-01 01:53:16 +000025} // end namespace CodeGen
26} // end namespace clang
27
28#endif