This commit merges the latest LLVM sources from the vendor space. It also updates the build glue to match the new sources. Clang's version number is changed to match LLVM's, which means /usr/include/clang/2.0 has been renamed to /usr/include/clang/2.8. Obtained from: projects/clangbsd
29 lines
717 B
C++
29 lines
717 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/Support/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
|