f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
28 lines
712 B
C++
28 lines
712 B
C++
//===-- 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/IR/IRBuilder.h"
|
|
|
|
namespace clang {
|
|
namespace CodeGen {
|
|
|
|
// Don't preserve names on values in an optimized build.
|
|
#ifdef NDEBUG
|
|
typedef llvm::IRBuilder<false> CGBuilderTy;
|
|
#else
|
|
typedef llvm::IRBuilder<> CGBuilderTy;
|
|
#endif
|
|
|
|
} // end namespace CodeGen
|
|
} // end namespace clang
|
|
|
|
#endif
|