clang API Documentation

CGBuilder.h
Go to the documentation of this file.
00001 //===-- CGBuilder.h - Choose IRBuilder implementation  ----------*- C++ -*-===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 
00010 #ifndef CLANG_CODEGEN_CGBUILDER_H
00011 #define CLANG_CODEGEN_CGBUILDER_H
00012 
00013 #include "llvm/Support/IRBuilder.h"
00014 
00015 namespace clang {
00016 namespace CodeGen {
00017 
00018 // Don't preserve names on values in an optimized build.
00019 #ifdef NDEBUG
00020 typedef llvm::IRBuilder<false> CGBuilderTy;
00021 #else
00022 typedef llvm::IRBuilder<> CGBuilderTy;
00023 #endif
00024 
00025 }  // end namespace CodeGen
00026 }  // end namespace clang
00027 
00028 #endif