2008-11-01 09:53:16 +08:00
|
|
|
//===-- CGBuilder.h - Choose IRBuilder implementation ----------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef CLANG_CODEGEN_CGBUILDER_H
|
|
|
|
#define CLANG_CODEGEN_CGBUILDER_H
|
|
|
|
|
|
|
|
#include "llvm/Support/IRBuilder.h"
|
|
|
|
|
|
|
|
namespace clang {
|
|
|
|
namespace CodeGen {
|
2008-11-12 08:01:12 +08:00
|
|
|
// Don't preserve names on values in an optimized build.
|
|
|
|
#ifdef NDEBUG
|
2008-11-10 14:31:46 +08:00
|
|
|
typedef llvm::IRBuilder<false> CGBuilderTy;
|
2008-11-12 08:01:12 +08:00
|
|
|
#else
|
|
|
|
typedef llvm::IRBuilder<> CGBuilderTy;
|
|
|
|
#endif
|
2008-11-01 09:53:16 +08:00
|
|
|
} // end namespace CodeGen
|
|
|
|
} // end namespace clang
|
|
|
|
|
|
|
|
#endif
|